The Notification.Builder Class PRO

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