/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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);
URL: http://nm-blog.sanid.com/wp-content/uploads/2009/07/android_howto-hellowidget.pdf