SHARE
TWEET

Untitled

a guest Jul 17th, 2017 35 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. minSdkVersion 21
  2. targetSdkVersion 25
  3.    
  4. NotificationCompat.Builder notificationBuilder = (NotificationCompat.Builder) new NotificationCompat.Builder(activity)
  5.             .setPriority(Notification.PRIORITY_MAX)
  6.             .setAutoCancel(true);
  7. notificationBuilder.setVibrate(new long[0]);
  8. ((NotificationManager) activity.getSystemService(Context.NOTIFICATION_SERVICE))
  9.             .notify(9999, notificationBuilder.build());
RAW Paste Data
Top