MediaStyleNotification Extension [PAID]


MediaStyleNotification Extension v1 allows you to use Play and Pause actions from a Notification including from the Lock Screen is now available for purchase.
This Extension was Developed By Ken Nichols with Help from Andres Cotes, Thank You @Andres_Cotes!
I would like to thank my Beta Testers(@Kleyber_Derick, @Fabian, @2227 and most importantly @Rey! ) and last but not least I have to thank @Taifun for the BroadcastReceiver example! found here:

The MediaStyleNotification wasn’t introduced until API21 Lollipop Android OS v5.0 and the ActionButton wasn’t introduced until API16 JellyBean Android OS v4.1.
For maximum compatibility, I created the 3 different styles of notifications listed below.

Lollipop v5.0 to Current(Pie v9.0) MediaStyleNotification:

JellyBean v4.1 to KitKat v4.4 ActionButtonNotification:


Pre-JellyBean Notification:







MoveTaskToBackground(Minimizes app):



Is set to OnGoing and can’t be swiped away by the user.
Note: It must be removed by CancelNotification.

Isn’t set to OnGoing so it can be swiped away by the user.

Icon Setting:
I added the ability to display the apps Icon see pictures in post below…

This Extension uses android.R.drawable for the icon(smallIcon)
I recommend “android.R.drawable.ic_media_play” for PlayingNotification and
“android.R.drawable.ic_media_pause” for PausedNotification but you can use which icon you like.
see a full list of options here:Icons.txt (6.8 KB)

in Lollipop and newer the Notification is automatically Colorized based on the colors of the LargeIcon.

Visibility Setting:
“VISIBILITY_PUBLIC” shows the notification’s full content.
“VISIBILITY_SECRET” doesn’t show any part of this notification on the lock screen.
“VISIBILITY_PRIVATE” shows basic information, such as the notification’s icon and the content title, but hides the notification’s full content.

Price $15 USD

Please PM me to Order, Thank you!

Metadata: Notification Media Player Music Stream Streaming Play Pause Button Buttons Audio

Notify_v3 Extension [Free]
How to add a notification music controller in my app
Keep radio play
Notify_v3 Extension [Free]
Besoin d'aide pour programmation

excelente trabajo felicitaciones


Can we play music using this?


I designed it to work with the Player Component.

When someone clicks on the Play or Pause ActionButton from the Notification the Event ActionButtonClick is raised.




Does it work in the background as well, or clicking the button takes you to the app.


Clicking on the Non Button area of the Notification will bring the app to the front.

Clicking on the Play/Pause ActionButtons will just raise the ActionButtonClick Event and not bring the app to the front.
It also works on the LockScreen.

You can see it in action in the video above.


icon Setting Update:

I added the ability to use the apps Icon for the Notification.


felicitaciones , habĂ­an dicho que eso era imposible antes de la api 21


Yes, I had believed it to be impossible < API23.


I’ve tested it as far back as JellyBean 4.1.1 API16.


according to the documentation
to set the small icon which will be used to represent the notification in the status bar is available starting from API level 23… ???


I added the option to add Prev(Previous) and Next buttons to the notification.
Lollipop 5.0 and Newer:

JellyBean 4.1 to KitKat 4.4:




How to add a notification music controller in my app

Can you provide APK demo to test


If you press back and if the App closed, can we still have the notification bar, if App is play song


Yes, See Picture below, when you press Back and Player IsPlaying we MoveTaskToBackground(aka Minimize the app)



Thanks for your reply, is it work (playing) if screen is off? And can we able to view/access the notification buttons (Play/Pause) on the locked screen?


Yes, checkout the video above.


Does this extension work on Oreo and Pie?


I updated the code to work on API26(Oreo) and above a couple weeks ago.
I’ve tested it on Oreo both 8.0 and 8.1, I haven’t tested on Pie yet but according to the documentation it should work.


You can pass me a test application, if you need Android Pie testing. Best regards, Ben.