Monday, March 12, 2012

Android StatusBar Notification with Badge icon

Android Status Bar Notification with Badge icon.

Now you can display status bar notification with badge icon in android .

Source code :
 Notification notification = new Notification(R.drawable.ic_launcher,  "Notify",System.currentTimeMillis()); 
  notification.setLatestEventInfo(NotificationActivity.this, 
  "notify","Description", 
  PendingIntent.getActivity(this.getBaseContext(), 0, intent, 
  PendingIntent.FLAG_CANCEL_CURRENT)); 
      notification.number = 5;
      mManager.notify(APP_ID, notification);  


Screen shot:



 Below link i attached source code for this one you can download it.

DOWNLOAD SOURCE CODE

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...