Failed to start Intent service {act = com.google.android.c2dm.intent.REGISTER (has additional functions)}: not found

I am trying to use C2DM in my application, but I am getting some errors

10-14 11:21:14.904: WARN/ActivityManager(61): Unable to start service Intent { act=com.google.android.c2dm.intent.REGISTER (has extras) }: not found 

My code is:

 Intent registrationIntent = new Intent("com.google.android.c2dm.intent.REGISTER"); registrationIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0)); // boilerplate registrationIntent.putExtra("sender", " andylor03@gmail.com "); startService(registrationIntent); 

Can anyone help me on this ...

Happy code ...!

+4
source share
2 answers

There was the same problem. To develop and test an Android emulator, you need to download the Android 2.2 version of the Android application into your SDK using the Android SDK and AVD Manager. In particular, you need to download the "Google API from Google Inc, Android API 8" component. Then you need to configure the AVD that uses this system image.

originally posted here

+4
source

I had the same problem, and I decided: you only need to register a Google account (the one that you registered for C2DM) on your phone (or emulator), through the settings panel. Of course, you must also install the Android Market on the emulator.

+1
source

All Articles