Advertisement
arter97

Untitled

Mar 22nd, 2017
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. NotificationManager mNotifyManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
  2. Notification.Builder nBuilder = new Notification.Builder(this);
  3.  
  4. nBuilder.setContentTitle("IGRUS!");
  5. nBuilder.setContentText("YEAH");
  6. nBuilder.setSmallIcon(R.mipmap.ic_launcher);
  7. nBuilder.setOngoing(false);
  8. nBuilder.setProgress(0, 0, false);
  9.  
  10. mNotifyManager.notify(1, nBuilder.build());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement