Guest User

Untitled

a guest
Jul 16th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Intent registrationIntent = new Intent("com.google.android.c2dm.intent.REGISTER");
  2. registrationIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0));
  3. registrationIntent.putExtra("sender", "achalrajpoot1@gmail.com");
  4.  
  5. public void onReceive(Context context, Intent intent)
  6. {
  7. if (intent.getStringExtra("error") == null)
  8. {
  9. System.out.println("Error in registration ");
  10. }
  11. }
  12.  
  13. if (intent.getStringExtra("error") != null) {
  14. System.out.println("Error in registration ");
  15. }
Add Comment
Please, Sign In to add comment