1<?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 22 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> 23 <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 40 <activity android:name=".MusicPlayerActivity" 41 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 55 <!-- 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 64 <service 65 android:name=".MusicService" 66 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> 76