Posted By

phantomas on 10/12/10


bar info notification android

Versions (?)

Display notification in info bar

 / Published in: Java


  1. NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
  2. Notification noty = new Notification(R.drawable.icon, "Button 1 clicked", System.currentTimeMillis());
  3. noty.setLatestEventInfo(context, "Notice", msg, contentIntent);
  4. notificationManager.notify(1, noty);

Report this snippet  

You need to login to post a comment.