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