Hi everyone. I'm attempting to use C2DM in my app, but I admit I'm
finding the docs very confusing.

The official guide http://code.google.com/android/c2dm/ makes the
process seem relatively simple, showing code which implements various
methods, onReceive(), handleRegistration(), performs registration,
along with some manifest entries.

It also points to two examples, JumpNote and ChrometoPhone. However
the implementation of C2DM in these two apps are not like the
suggestions in the overview docs:

- the docs declare a receiver:
<receiver android:name=".C2DMReceiver"
android:permission="com.google.android.c2dm.permission.SEND">

- while the sample apps do this:
<service android:name=".C2DMReceiver" />
<receiver android:name="com.google.android.c2dm.C2DMBroadcastReceiver"
 
android:permission="com.google.android.c2dm.permission.SEND">

The samples also have a class called C2DMReceiver, but again the docs
have no mention of this. Furthermore, I can find no implementation of
the methods mentioned above (onReceive, handleRegistration) within the
sample apps.

Anyway, I've so far attempted to implement the code as per the docs,
and so far the only output I get is this:

DEBUG/C2DMRegistrar(184): [C2DMRegistrar.61] register: http error 400


Confused... any advice please?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to