1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2013 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 17 <!-- Declare the contents of this Android application. The namespace 18 attribute brings in the Android platform namespace, and the package 19 supplies a unique name for the application. When writing your 20 own application, the package name must be changed from "com.example.*" 21 to come from a domain that you own or have control over. --> 22 <manifest xmlns:android="http://schemas.android.com/apk/res/android" 23 package="com.example.android.mediarouter"> 24 <!-- Permission for INTERNET is required for streaming video content 25 from the web, it's not required otherwise. --> 26 <uses-permission android:name="android.permission.INTERNET" /> 27 <!-- Permission for SYSTEM_ALERT_WINDOW is only required for emulating 28 remote display using system alert window. --> 29 <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> 30 31 <!-- Min/target SDK versions (<uses-sdk>) managed by build.gradle --> 32 33 <!-- The smallest screen this app works on is a phone. The app will 34 scale its UI to larger screens but doesn't make good use of them 35 so allow the compatibility mode button to be shown (mostly because 36 this is just convenient for testing). --> 37 <supports-screens android:requiresSmallestWidthDp="320" 38 android:compatibleWidthLimitDp="480" /> 39 40 <application android:label="@string/app_name" 41 android:icon="@drawable/ic_launcher" 42 android:hardwareAccelerated="true"> 43 44 <receiver android:name=".player.SampleMediaButtonReceiver"> 45 <intent-filter> 46 <action android:name="android.intent.action.MEDIA_BUTTON" /> 47 </intent-filter> 48 </receiver> 49 <!-- MediaRouter Support Samples --> 50 51 <activity android:name=".player.MainActivity" 52 android:label="@string/app_name" 53 android:theme="@style/Theme.AppCompat.Light"> 54 <intent-filter> 55 <action android:name="android.intent.action.MAIN" /> 56 <category android:name="android.intent.category.DEFAULT" /> 57 <category android:name="android.intent.category.LAUNCHER" /> 58 </intent-filter> 59 <intent-filter> 60 <action android:name="android.intent.action.MAIN" /> 61 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 62 </intent-filter> 63 </activity> 64 65 <service android:name=".provider.SampleMediaRouteProviderService" 66 android:label="@string/sample_media_route_provider_service" 67 android:process=":mrp"> 68 <intent-filter> 69 <action android:name="android.media.MediaRouteProviderService" /> 70 </intent-filter> 71 </service> 72 73 </application> 74 </manifest> 75