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 <uses-sdk android:targetSdkVersion="19" 32 android:minSdkVersion="7"/> 33 34 <!-- The smallest screen this app works on is a phone. The app will 35 scale its UI to larger screens but doesn't make good use of them 36 so allow the compatibility mode button to be shown (mostly because 37 this is just convenient for testing). --> 38 <supports-screens android:requiresSmallestWidthDp="320" 39 android:compatibleWidthLimitDp="480" /> 40 41 <application android:label="@string/app_name" 42 android:icon="@drawable/ic_launcher" 43 android:hardwareAccelerated="true"> 44 45 <receiver android:name=".player.SampleMediaButtonReceiver"> 46 <intent-filter> 47 <action android:name="android.intent.action.MEDIA_BUTTON" /> 48 </intent-filter> 49 </receiver> 50 <!-- MediaRouter Support Samples --> 51 52 <activity android:name=".player.MainActivity" 53 android:label="@string/app_name" 54 android:theme="@style/Theme.AppCompat.Light"> 55 <intent-filter> 56 <action android:name="android.intent.action.MAIN" /> 57 <category android:name="android.intent.category.DEFAULT" /> 58 <category android:name="android.intent.category.LAUNCHER" /> 59 </intent-filter> 60 <intent-filter> 61 <action android:name="android.intent.action.MAIN" /> 62 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 63 </intent-filter> 64 </activity> 65 66 <service android:name=".provider.SampleMediaRouteProviderService" 67 android:label="@string/sample_media_route_provider_service" 68 android:process=":mrp"> 69 <intent-filter> 70 <action android:name="android.media.MediaRouteProviderService" /> 71 </intent-filter> 72 </service> 73 74 </application> 75 </manifest>