Search code examples
androidnotificationsandroid-4.2-jelly-bean

Custom Notification Layout for jelly bean android


I have a custom notification layout. in which i have some buttons . i want to change this play icon to pause when press once. if press again then change pause to play icon. actually i want to develop a music app . where music control buttons will be in the notification bar such as play, pause, next etc. that's all

I have done all of this except "change play button to pause when press once. if press again then change pause to play ." How i change a button image after press on notification bar.

Anyone please help me ..


Solution

  • i just update my notification with changed image play to pause with the same notification id and then it works fine for me...

    i just following....

    http://developer.android.com/guide/topics/ui/notifiers/notifications.html#Updating

    thanks..