Return to Snippet

Revision: 33740
at October 12, 2010 23:34 by phantomas


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

Initial URL
http://nm-blog.sanid.com/wp-content/uploads/2009/07/android_howto-hellowidget.pdf

Initial Description

                                

Initial Title
Display notification in info bar

Initial Tags
android

Initial Language
Java