blob: e459ed17d9924fa12e99a5872948aee7daa2af4c [file] [log] [blame]
Trevor Johns527a4f32014-11-12 11:39:30 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2014 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 -->
17<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18 package="com.example.android.mediabrowserservice"
19 android:versionCode="1"
20 android:versionName="1.0" >
21
Dianne Hackborn7049e082018-01-19 17:55:31 -080022 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
Trevor Johns527a4f32014-11-12 11:39:30 -080023 <uses-permission android:name="android.permission.INTERNET" />
24 <uses-permission android:name="android.permission.WAKE_LOCK" />
25
26 <uses-sdk
27 android:minSdkVersion="21"
28 android:targetSdkVersion="21" />
29
30 <application
31 android:allowBackup="true"
32 android:icon="@drawable/ic_launcher"
33 android:label="@string/app_name"
34 android:theme="@style/AppTheme">
35
36 <meta-data android:name="com.google.android.gms.car.application"
37 android:resource="@xml/automotive_app_desc"/>
38
39
Trevor Johns77b5d392015-03-30 16:06:43 -070040 <activity android:name=".MusicPlayerActivity"
Trevor Johns527a4f32014-11-12 11:39:30 -080041 android:label="@string/app_name">
42 <intent-filter>
43 <action android:name="android.intent.action.MAIN" />
44 <category android:name="android.intent.category.LAUNCHER" />
45 </intent-filter>
46 </activity>
47
48 <!-- (OPTIONAL) use this meta data to indicate which icon should be used in media
49 notifications (for example, when the music changes and the user is
50 looking at another app) -->
51 <meta-data
52 android:name="com.google.android.gms.car.notification.SmallIcon"
53 android:resource="@drawable/ic_notification" />
54
Trevor Johns77b5d392015-03-30 16:06:43 -070055 <!--
56 (OPTIONAL) use this meta data to override the theme from which Android Auto will
57 look for colors. If you don't set this, Android Auto will look
58 for color attributes in your application theme.
59 -->
60 <meta-data
61 android:name="com.google.android.gms.car.application.theme"
62 android:resource="@style/CarTheme" />
63
Trevor Johns527a4f32014-11-12 11:39:30 -080064 <service
Trevor Johns77b5d392015-03-30 16:06:43 -070065 android:name=".MusicService"
Trevor Johns527a4f32014-11-12 11:39:30 -080066 android:exported="true"
67 >
68 <intent-filter>
69 <action android:name="android.media.browse.MediaBrowserService" />
70 </intent-filter>
71 </service>
72
73 </application>
74
75</manifest>