Back to project page final_year_frontend.
The source code is released under:
MIT License
If you think the Android project final_year_frontend listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.james.erebus.core; //from w w w. ja v a2 s . com import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; public class C2DMRegistrationReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); Log.w("C2DM", "Registration Receiver called"); if ("com.google.android.c2dm.intent.REGISTRATION".equals(action)) { Log.w("C2DM", "Received registration ID"); final String registrationId = intent .getStringExtra("registration_id"); String error = intent.getStringExtra("error"); Log.d("C2DM", "dmControl: registrationId = " + registrationId + ", error = " + error); } } }