in my onCreate of the main avtivity i put that code
Intent registrationIntent = new
Intent("com.google.android.c2dm.intent.REGISTER");
registrationIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new
Intent(), 0)); // boilerplate
registrationIntent.putExtra("sender", "[email protected]");
startService(registrationIntent);
i add the reciver to manifest.xml
<receiver
android:name=".MyC2dmReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action
android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.xxxxxx.testc2dm" />
</intent-filter>
<intent-filter>
<action
android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.xxxxxx.testc2dm" />
</intent-filter>
</receiver>
i try to send the registrationID to my server
when it's send? just in the first time (installation ) or every time the
app is loadded?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en