• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Android MediaBrowserService Sample
2===================================
3
4This sample shows how to implement an audio media app that provides
5media library metadata and playback controls through a standard
6service. It exposes a simple music library through the new
7MediaBrowserService and provides MediaSession callbacks. This allows
8it to be used in Android Auto, for example.
9When not connected to a car, the app has a very simple UI that browses
10the media library and provides simple playback controls. When
11connected to Android Auto, the same service provides data and callback
12to the Android Auto UI in the same manner as it provides them to the
13local UI.
14
15Pre-requisites
16--------------
17
18- Android SDK v21
19- Android Build Tools v21.1.1
20- Android Support Repository
21
22Getting Started
23---------------
24
25This sample uses the Gradle build system. To build this project, use the
26"gradlew build" command or use "Import Project" in Android Studio.
27
28Support
29-------
30
31- Google+ Community: https://plus.google.com/communities/105153134372062985968
32- Stack Overflow: http://stackoverflow.com/questions/tagged/android
33
34If you've found an error in this sample, please file an issue:
35https://github.com/googlesamples/android-MediaBrowserService
36
37Patches are encouraged, and may be submitted by forking this project and
38submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
39
40License
41-------
42
43Copyright 2014 The Android Open Source Project, Inc.
44
45Licensed to the Apache Software Foundation (ASF) under one or more contributor
46license agreements.  See the NOTICE file distributed with this work for
47additional information regarding copyright ownership.  The ASF licenses this
48file to you under the Apache License, Version 2.0 (the "License"); you may not
49use this file except in compliance with the License.  You may obtain a copy of
50the License at
51
52http://www.apache.org/licenses/LICENSE-2.0
53
54Unless required by applicable law or agreed to in writing, software
55distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
56WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
57License for the specific language governing permissions and limitations under
58the License.
59