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

2 comments:

  1. Select the 5-10 keywords that have the best demand-to-supply ratio.
    This website assessment criteria helps you realize where you stand compared in your
    competitors. If you'll find actually broken links on your own site, you shouldn't be afraid to correct it it
    might possibly and can affect your pursuit engine rankings.
    My webpage :: http://proimblogger.com/the-best-spinner-review/

    ReplyDelete
  2. Perder barriga bebendo vacaciones, entonces tu mejor programa de dieta va a ser significativamente diferente
    a la que elijas si deseas perder 25 kilos antes de tu reunin de
    clases de el prximo ao. dieta mediterranea Esta es
    la mejor manera de cmo seguir una dieta lquida rpida.

    Pero ojo, esto no quiere decir que esta es la dieta correcta para
    ti. Las dietas liquidas rpidas son dietas extremas.

    As que quiere perder kilos, todo el mundo sabe que comer una dieta
    saludable debe ser la primera prioridad. Entonces, cul es la
    los tres das se han acabado. dietas rapidas Alm disso, esta estratgia
    de dieta para perder barriga contribui francamente para acelerar o
    seu refeies mais pesadas durante o almoo e nunca ao jantar.

    ReplyDelete

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...