tags:

views:

52

answers:

3

Hi Friends

I am getting follwoing Authentication error while trying to retrieve registration id for C2DM service:

09-24 11:56:48.409: DEBUG/GoogleLoginService(168): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService } 09-24 11:56:53.091: DEBUG/dalvikvm(127): GC_EXPLICIT freed 842 objects / 46984 bytes in 184ms 09-24 11:56:54.971: WARN/DefaultRequestDirector(168): Authentication error: Unable to respond to any of these challenges: {} 09-24 11:56:54.980: DEBUG/C2DMRegistrar(168): [C2DMRegistrar.32] register: http error 401 09-24 11:56:55.069: ERROR/C2DMRegistrar(168): [C2DMReg] handleRequest caught org.apache.http.auth.AuthenticationException 09-24 11:56:55.430: DEBUG/GoogleLoginService(168): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService } 09-24 11:56:56.170: DEBUG/GoogleLoginService(168): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }

I am using Google API Level8 of Android platform 2.2 The user (sender-id) is logged in through the emulator

Any help will be highly appreciated

Thanks

A: 

I have also faced same problem Surajit.

Please help us.

...Thanks

Devendra Kumar
A: 

You need a couple of extra permissions, that are not mentioned in the original article:

  <uses-permission android:name="android.permission.GET_ACCOUNTS" />
  <uses-permission android:name="android.permission.USE_CREDENTIALS" />
sdelmont
these permissions are already there in manifest. which article r u referring to?
Surajit
http://code.google.com/android/c2dm/index.html
sdelmont
A: 

these permissions are already there in manifest. which article r u referring to?

Surajit