Android Developers1.32 млн
Популярные
Опубликовано 15 октября 2015, 18:21
MediaSessionCompat integrates your Android media app into the system, bringing media metadata and standardized controls on notifications, Android Wear, and the lock screen.
With the help of a Media Button Receiver (developer.android.com/training... your app will handle media buttons from bluetooth headsets and Android Wear devices with a single API for all Android 2.0+ devices.
For Android 4.0-4.4, you’ll no longer need to write deprecated RemoteControlClient code to get lock screen media controls as MediaSessionCompat will automatically wrap the API on those platform versions while giving you the best experience on Android 5.0+ devices.
You’ll also find that MediaSessionCompat works well with NotificationCompat.MediaStyle (developer.android.com/referenc... for the best media notifications across all API7+ devices.
#media #wearables #wear
With the help of a Media Button Receiver (developer.android.com/training... your app will handle media buttons from bluetooth headsets and Android Wear devices with a single API for all Android 2.0+ devices.
For Android 4.0-4.4, you’ll no longer need to write deprecated RemoteControlClient code to get lock screen media controls as MediaSessionCompat will automatically wrap the API on those platform versions while giving you the best experience on Android 5.0+ devices.
You’ll also find that MediaSessionCompat works well with NotificationCompat.MediaStyle (developer.android.com/referenc... for the best media notifications across all API7+ devices.
#media #wearables #wear