Friday, September 10, 2010

[android-developers] Re: Testing C2DM service on Android 2.2 emulator

Been trying for ages (at least, so it seems)

I am using Google APIs 8,rev2.

Keep getting the same result.
Something just isn't geting digested in the auth layer :(

Any tips ?

(scenario: simple c2dm registration -> failing, chrome to phone ->
working ok !)


Regards,

Hatch

On Aug 19, 12:15 pm, xianhao lv <xianhao...@gmail.com> wrote:
> Try Google APIs by Google Inc., Android API 8, revision2 if SDK api8
> revision 2 doesn't work.
>
>
>
> On Thu, Aug 19, 2010 at 6:09 PM, xianhao lv <xianhao...@gmail.com> wrote:
> > Maybe you should use SDK platform Android 2.2 API 8 revision 2 to have a
> > try.
>
> > But I got the following errors:
>
> > 8-19 09:56:08.777: DEBUG/GoogleLoginService(171): onBind: Intent {
> > act=android.accounts.AccountAuthenticator
> > cmp=com.google.android.gsf/.loginservice.GoogleLoginService }
> > 08-19 09:56:10.557: WARN/DefaultRequestDirector(171): Authentication error:
> > Unable to respond to any of these challenges: {}
> > 08-19 09:56:10.557: DEBUG/C2DMRegistrar(171): [C2DMRegistrar.22] register:
> > http error 401
> > 08-19 09:56:10.557: ERROR/C2DMRegistrar(171): [C2DMReg] handleRequest
> > caught org.apache.http.auth.AuthenticationException
> > 08-19 09:56:10.647: DEBUG/GoogleLoginService(171): onBind: Intent {
> > act=android.accounts.AccountAuthenticator
> > cmp=com.google.android.gsf/.loginservice.GoogleLoginService }
> > 08-19 09:56:10.967: DEBUG/GoogleLoginService(171): onBind: Intent {
> > act=android.accounts.AccountAuthenticator
> > cmp=com.google.android.gsf/.loginservice.GoogleLoginService }
> > 08-19 09:56:36.147: WARN/DeviceRegistrar(275): Registration error Read
> > error: Failure in SSL library, usually a protocol error
>
> > On Thu, Aug 12, 2010 at 4:24 AM, Mark Murphy <mmur...@commonsware.com>wrote:
>
> >> Make sure you have set up a Google account in the emulator (Settings >
> >> Accounts).
>
> >> On Wed, Aug 11, 2010 at 4:00 PM, Sean Liao <wirelessw...@gmail.com>
> >> wrote:
> >> > I am having the same problem ... any solution or any pointer?
>
> >> > On Tue, Jul 6, 2010 at 9:59 AM, guligo <igors.gulbins...@gmail.com>
> >> wrote:
>
> >> >> Hi guys,
>
> >> >> I am playing around with C2DM service. What I am concerned about is
> >> >> that I cannot test my device-side application from Android 2.2
> >> >> emulator. The application was built more or less according to
> >> >>http://code.google.com/android/c2dm/index.htmldoc, but when register
> >> >> intent is sent from application, Logcat shows this:
>
> >> >> Unable to start service Intent
> >> >> { act=com.google.android.c2dm.intent.REGISTER (has extras) }: not
> >> >> found
>
> >> >> I also tried to run chrometophone and jumpnote applications and the
> >> >> result is the same when registring device. Any ideas?
>
> >> >> ...main question probably - is it possible to test C2DM service from
> >> >> Android emulator?
>
> >> >> Thanks in advance!
>
> >> >> --
> >> >> You received this message because you are subscribed to the Google
> >> >> Groups "Android Developers" group.
> >> >> To post to this group, send email to
> >> android-developers@googlegroups.com
> >> >> To unsubscribe from this group, send email to
> >> >> android-developers+unsubscribe@googlegroups.com<android-developers%2Bunsubs cribe@googlegroups.com>
> >> >> For more options, visit this group at
> >> >>http://groups.google.com/group/android-developers?hl=en
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to
> >> android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscribe@googlegroups.com<android-developers%2Bunsubs cribe@googlegroups.com>
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
>
> >> --
> >> Mark Murphy (a Commons Guy)
> >>http://commonsware.com|http://github.com/commonsguy
> >>http://commonsware.com/blog|http://twitter.com/commonsguy
>
> >> Android 2.2 Programming Books:http://commonsware.com/books
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscribe@googlegroups.com<android-developers%2Bunsubs cribe@googlegroups.com>
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment