views:

181

answers:

1

I am working on google's C2DM and have a program on the android emulator trying to get registration ID. But I get following errors:

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

WARN/GoogleLoginService(171): Device has no accounts: sending Intent { act=com.google.android.gsf.LOGIN_ACCOUNTS_MISSING }

ERROR/GTalkService(171): asyncFetch: no username

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

+1  A: 

Your device needs to have at least one Google account set up under Settings/Accounts for C2DM to work.

Josef