Skip to content

Most visited

Recently visited

navigation

MediaBrowserService

This sample shows how to implement an audio media app that provides media library metadata and playback controls through a standard service. It exposes a simple music library through the new MediaBrowserService and provides MediaSession callbacks. This allows it to be used in Android Auto, for example. When not connected to a car, the app has a very simple UI that browses the media library and provides simple playback controls. When connected to Android Auto, the same service provides data and callback to the Android Auto UI in the same manner as it provides them to the local UI.

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.