Example usage for android.support.v4.service MediaBrowserServiceCompat subclass-usage

List of usage examples for android.support.v4.service MediaBrowserServiceCompat subclass-usage

Introduction

In this page you can find the example usage for android.support.v4.service MediaBrowserServiceCompat subclass-usage.

Usage

From source file com.torrenttunes.android.MusicService.java

/**
 * This class provides a MediaBrowser through a service. It exposes the media library to a browsing
 * client, through the onGetRoot and onLoadChildren methods. It also creates a MediaSession and
 * exposes it through its MediaSession.Token, which allows the client to create a MediaController
 * that connects to and send control commands to the MediaSession remotely. This is useful for
 * user interfaces that need to interact with your media session, like Android Auto. You can