Testing C2DM service on Android 2.2 emulator

by guligo » Thu, 08 Jul 2010 02:33:00 GMT


Sponsored Links
 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.html doc , 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!

--



Testing C2DM service on Android 2.2 emulator

by Sean Liao » Thu, 12 Aug 2010 04:01:02 GMT


 I am having the same problem ... any solution or any pointer?




>


Sponsored Links


Testing C2DM service on Android 2.2 emulator

by Mark Murphy » Thu, 12 Aug 2010 04:25:51 GMT


 Make sure you have set up a Google account in the emulator (Settings >
Accounts).




>>



Testing C2DM service on Android 2.2 emulator

by xianhao lv » Thu, 19 Aug 2010 18:09:44 GMT


 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







> >>



Testing C2DM service on Android 2.2 emulator

by xianhao lv » Thu, 19 Aug 2010 18:16:06 GMT


 Try Google APIs by Google Inc., Android API 8, revision2 if SDK api8
revision 2 doesn't work.







>> >>



Testing C2DM service on Android 2.2 emulator

by Hatch » Sat, 11 Sep 2010 08:51:27 GMT


 een 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:15pm, xianhao lv <xianhao...@gmail.com> wrote:
> >> >>



Testing C2DM service on Android 2.2 emulator

by julius » Sun, 12 Sep 2010 14:48:19 GMT


 i,

I have the same problem - not quite sure what I'm doing wrong. I'd
like to use the emulator to be able to check the networking.

Perhaps my c2dm account isn't really set up yet.

Regards,
Julius.

On Sep 10, 9:08pm, Hatch <tomislav.hecimo...@gmail.com> wrote:
> > >> >>



Testing C2DM service on Android 2.2 emulator

by Julius Spencer » Sun, 12 Sep 2010 15:30:53 GMT


 i,

"Unable to start service Intent { act=com.google.android.c2dm.intent.REGISTER
(has extras) }: not found"

Oh maybe this can't be done in the emulator:
"To develop and debug on an actual device, you need a device running an Android
2.2 system image that includes the Market application."

I don't have Market in the emulator.

If this is why I can't do this, it would be great to know.

Cheers,
Julius.


On 12/09/2010, at 6:48 PM, julius wrote:

>>>>>>>



Testing C2DM service on Android 2.2 emulator

by Julius Spencer » Sun, 12 Sep 2010 15:34:31 GMT


 h disregard that I didn't see the next bit:
"To develop and test on the Android Emulator, you need to download the Android
2.2 version of the Google APIs Add-On into your SDK using the Android SDK and
AVD Manager. Specifically, you need to download the component named "Google
APIs by Google Inc, Android API 8". Then, you need to set up an AVD that uses
that system image."



On 12/09/2010, at 7:30 PM, Julius Spencer wrote:

>>>>>>>>



Other Threads

1. How to set target in eclipse at the time of creating AVD.

dear all,

I used android 0.9.4 with eclipse 3.6 [Helios] and android-sdk_r3-
windows.

I have completely configured android with eclipse but as i try to
create AVD through eclipse window-> Prefrence-> Android SDK AVD
Manager option, i don't show any target in dialog box combo, i don't
know how to resolve this problem.


thanks to advance support.

-- 

2. android-sdk sans gui

Is it possible to use the latest Android SDK without the GUI?
Specifically, I am trying to setup the tools on an Ubuntu server (as
kind of a compiler server, or what have you).  Right now, after I have
installed android-sdk-linux and try to run "tools/android update sdk"
it of course fails on "gtk_init_check()".

What I would like to be able to do is download platforms and add-ons
without the GUI.  Thank you for any help and/or advice.

-- 

3. Trouble setting up SDK on ubuntu 9.10

4. installing and using android in a multi-user environment

5. Good Android Developer Blogs?

6. How to change default SMS centre setting

7. How can i get the statistic of GPRS and WIFI on Android platform?