title: Control my web radio player from notification with NotificationCompat.MediaStyle and MediaSessionCompat
body: <p>I have an app that reproduces from the service a webradio (using AACDecoder lib) and show on a simple ongoing notification what is playing while the activity is not resumed.
  What i want is to add by NotificationCompat.MediaStyle a button to stop (and eventually re-start) the playing from notification, without the need of opening the activity. Despite it is a webradio player and not a player with a reprodution list, <em>i need only a play-pause button</em>.
  But even after reading various guides (<a href="http://www.binpress.com/tutorial/using-android-media-style-notifications-with-media-session-controls/165" rel="nofollow noreferrer">like this</a>) im not enable to correctly understand and implement this function, mainly because of the recent deprecations and newly compatibility classes on this scenario.</p>
  
  <p>This is how my notification appears:
  <a href="https://i.stack.imgur.com/5IQsc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5IQsc.png" alt=""></a></p>
  
  <p>And this is how i want (approximately, just need the pause-play button):
  <a href="https://i.stack.imgur.com/FZisv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FZisv.png" alt="enter image description here"></a></p>
  
  <p><strong>Any help is welcome. Thanks in advance!</strong></p>