I am having trouble getting the service started for Sync Adapter and Accounts. The framework doesn't call onCreate
methods.
For Sync Adapter,
I have create following components:
- Sync Service (class that
extends Service
) - Sync Adapter (class that
extends AbstractThreadedSyncAdapter
) - Sync_Adapter.xml
- AuthenticatorService (class that
extends Service
) - Authenticator (
extends AbstractAccountAuthenticator
) - account_authenticator.xml
And updated the entry in the manifest.xml
And that's it.
I don't see any logs reported from onCreate
from either services. Do I have to manually start them?
Please help.
Cheers, Raj
I have followed the documents to create
The documents I have followed to write sync adapter are: https://developer.android.com/training/sync-adapters/creating-sync-adapter.html http://blog.udinic.com/2013/04/24/write-your-own-android-authenticator/ https://github.com/Udinic/SyncAdapter/tree/master/SyncAdapterExample
I recommend you first download and run the Sample SyncAdapter app from android team.