so far I have been able to create custom notification when my player starts to play, but the problem is whenever i click the notification button that not only stops the media player button changes the button to stop icon.
But the thing is to achieve this i have to bring back the entire application from the dead and its kind of annoying when user click stop button in notification the entire application just resurfaces.
I am using intent to make a call on MainActivty that stops the player as well as updates the notification bar that the player has stopped.
There seems to be only normal examples of notification like displaying simple info and dismissing the notification on click of button. Pulling my hair for 5 days can some one help me with this! PLEASE ?
PS: i don't want to use the MediaStyle notification.