Android c2dm login id not working

I am working on google C2DM and have an Android emulator program trying to get the registration ID. But I get the following errors:

DEBUG / GoogleLoginService (171): onBind: Intent {act = android.accounts.AccountAuthenticator cmp = com.google.android.gsf / .loginservice.GoogleLoginService}

WARN / GoogleLoginService (171): The device does not have accounts: sending Intent {act = com.google.android.gsf.LOGIN_ACCOUNTS_MISSING}

ERROR / GTalkService (171): asyncFetch: no username

DEBUG / C2DMRegistrar (171): [C2DMRegistrar.20] AuthTokenCallback: no account

+4
source share
2 answers

Your device must have at least one Google Account configured in the Settings / Accounts for C2DM section.

+14
source

This is due to the fact that your device does not synchronize with Google. Go to "Settings" and add an account, enter your username and password for your Google account. Hope this works.

+2
source

All Articles