Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Intent registrationIntent = new Intent("com.google.android.c2dm.intent.REGISTER");
- registrationIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0));
- registrationIntent.putExtra("sender", "achalrajpoot1@gmail.com");
- public void onReceive(Context context, Intent intent)
- {
- if (intent.getStringExtra("error") == null)
- {
- System.out.println("Error in registration ");
- }
- }
- if (intent.getStringExtra("error") != null) {
- System.out.println("Error in registration ");
- }
Add Comment
Please, Sign In to add comment