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. Enabling route table with Custom Wifi driver

hi ,

I am making custom wifi driver up in android. After installing the
wifi driver I am able to run wpa_supplicant and dhcpcd to get the IP
address. This is working for open mode and close mod also.
But when I run route in the terminal nothing is displayed and route
just return back.

Here DHCP log,
th1: hardware address = 00:80:e1:10:34:96
eth1: broadcasting for a lease
eth1: sending DHCP_DISCOVER with xid 0xc15346f3
eth1: waiting for 4.703 seconds
eth1: offered 192.168.200.103 from 192.168.200.100
eth1: sending DHCP_REQUEST with xid 0xc15346f3
eth1: waiting for 4.444 seconds
eth1: lease of 192.168.200.103 acknowledged
eth1: leased 192.168.200.103 for 86400 seconds
eth1: renew in 43200 seconds
eth1: rebind in 73440 seconds
eth1: adding IP address 192.168.200.103/24
eth1: adding route to 0.0.0.0/0 via 192.168.200.100
eth1: write_lease: No such file or directory
eth1: executing `/system/etc/dhcpcd/dhcpcd-run-hooks'
eth1: forking to background
# netcfg
lo       UP    127.0.0.1       255.0.0.0       0x00000049
eth0     DOWN  0.0.0.0         0.0.0.0         0x00001002
eth1     UP    192.168.200.103 255.255.255.0   0x00001043
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. gps checksum never used, validity of message not verified

please note that gps_qemu.c is only used for GPL emulation within the
Android emulation (i.e. it is never used on a real device).
that's why there is little point in checking the checksum here, since all
the messages sent to it are normally generated by the emulator program
(for details, see the do_gps_XXX functions in
external/qemu/android_console.c)

(well, you can attach an external GPS unit to the emulator with the -gps
<device-file> command on Linux, but I'm unsure that much people
have tried that).

If you feel this is important, please feel free to provide a patch for
review to r.android.com (and please modify the android_console.c to generate
a correct checksum too)

regards





--~--~---------~--~----~------------~-------~--~----~

3. How many different fonts are available to WebView in android

4. what is absolute path name of file on SDCard

5. Binding with service lost after calling unbindService()

6. /cache use by android

7. Dialog not reopened after orientation change in Tab Activity