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: https://puravidaapps.com/headset.php
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:
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.
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_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