android - Sync Adapter not calling onCreate -


do need start sync adapter service or framework starts implicitly? have put log on constructor, oncreate, ondestroy of sync adapter service , when start app, don't see logs in logcat.

but when on activity oncreate

intent serviceintent = new intent(context, syncservice.class); context.startservice(serviceintent); 

i see logs.

please suggests.

cheers, raj

sync adapter starts explicitly calling:

contentresolver.requestsync(account, authority, null); 

or similar method:

contentresolver.addperiodicsync(             account,             authority,             bundle.empty,             sync_interval); 

https://developer.android.com/training/sync-adapters/running-sync-adapter.html

i recommend book, first 200 pages http://www.wrox.com/wileycda/wroxtitle/enterprise-android-programming-android-database-applications-for-the-enterprise.productcd-1118183495.html .


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -