added in version 24.1.0
belongs to Maven artifact


public abstract class MediaBrowserServiceCompat
extends Service

   ↳ android.content.Context
     ↳ android.content.ContextWrapper

Base class for media browse services.

Media browse services enable applications to browse media content provided by an application and ask the application to start playing it. They may also be used to control content that is already playing by way of a MediaSessionCompat.

To extend this class, you must declare the service in your manifest file with an intent filter with the SERVICE_INTERFACE action. For example:

 <service android:name=".MyMediaBrowserServiceCompat"
          android:label="@string/service_name" >
         <action android:name="" />

Developer Guides

For information about building your media application, read the Media Apps developer guide.


Nested classes

class MediaBrowserServiceCompat.BrowserRoot

Contains information that the browser service needs to send to the client when first connected. 

class MediaBrowserServiceCompat.Result<T>

Completion handler for asynchronous callback methods in MediaBrowserServiceCompat



The Intent that must be declared as handled by the service.

Inherited constants

From class
From class android.content.Context