How to get Android player music buttons like music

I created a notification with a normal and advanced view with player controls identical to the Google game. However, I do not see notifications with playback controls on Android wear.

I tried to create a notification using actionButtons, not remoteView. Now I can see each action as a separate wear card. But I want to look like a Google Play game for wear. I saw a similar screen for the VLC player.

Please, help.

enter image description here

+6
source share
2 answers

Android Wear automatically generates media notifications with playback controls when you register RemoteControlClient or replace it with Android 5.0, MediaSession , using the transport flags that you provide to determine which buttons to show and how responses are sent to your application.

+1
source

and send a message to carry from your phone when you need to open it. A good way to open night activity from an Android phone, which can be found in the DataLayer example application.

0
source

Source: https://habr.com/ru/post/978666/


All Articles