daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Mar 15th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Intent in = new Intent(context, SnoozeEvent.class);
  2.     in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  3.     PendingIntent Sender = PendingIntent.getBroadcast(context, 0, intent, 0);
  4.     manager = (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
  5.     notification = new Notification(R.drawable.icon, "Wake up alarm", System.currentTimeMillis());
  6.     notification.setLatestEventInfo(context, "Hanuman Chalisa", "Wake Up...", Sender);
  7.     manager.notify(1, notification);
  8.    
  9. PendingIntent Sender = PendingIntent.getBroadcast(context, 0, intent, 0);
  10.    
  11. PendingIntent Sender = PendingIntent.getBroadcast(context, 0, in, 0);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top