The Notification.Builder Class <font size=-2><a href=http://www.lifemichael.com/en/?page_id=73>PRO</a></font>

The Android 3.0 platform includes the Notification.Builder class that assists with the creation of user notification. Notification.Builder builder = new Notification.Builder(NotificationBuilderDemo.this) .setSmallIcon(R.drawable.icon_noti) .setAutoCancel(true) .setTicker(“Hello Bonga!”) .setContentText(“La La La BONGA”) .setContentIntent(intent); NotificationManager manager =  (NotificationManager)getSystemService(NOTIFICATION_SERVICE); manager.notify(text.hashCode(), builder.getNotification()); The Notification.Builder class introduces a clear implementation for the Builder design pattern. The Android 3.0 Tablets UI course I […]