1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright 2018 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
18<manifest
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    package="com.android.pump">
21
22    <uses-permission android:name="android.permission.INTERNET"/>
23    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
24    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
25
26    <application
27        android:name=".app.PumpApplication"
28        android:label="Personal Universal MediaPlayer"
29        android:theme="@style/PumpTheme"
30        android:icon="@null"
31        android:supportsRtl="true"
32        android:allowBackup="false"
33        android:appCategory="video">
34
35        <activity
36            android:name=".activity.PumpActivity"
37            android:exported="true"
38            android:screenOrientation="portrait">
39
40            <intent-filter>
41                <action android:name="android.intent.action.MAIN"/>
42                <action android:name="android.intent.action.VIEW"/>
43                <category android:name="android.intent.category.LAUNCHER"/>
44            </intent-filter>
45
46        </activity>
47
48        <activity
49            android:name=".activity.ActivityStarterActivity"
50            android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"/>
51
52        <activity
53            android:name=".activity.ArtistDetailsActivity"
54            android:screenOrientation="portrait"/>
55
56        <activity
57            android:name=".activity.AlbumDetailsActivity"
58            android:screenOrientation="portrait"/>
59
60        <activity
61            android:name=".activity.GenreDetailsActivity"
62            android:screenOrientation="portrait"/>
63
64        <activity
65            android:name=".activity.PlaylistDetailsActivity"
66            android:screenOrientation="portrait"/>
67
68        <activity
69            android:name=".activity.MovieDetailsActivity"
70            android:screenOrientation="portrait"/>
71
72        <activity
73            android:name=".activity.SeriesDetailsActivity"
74            android:screenOrientation="portrait"/>
75
76        <activity
77            android:name=".activity.OtherDetailsActivity"
78            android:screenOrientation="portrait"/>
79
80        <activity
81            android:name=".activity.AudioPlayerActivity"
82            android:exported="true"
83            android:configChanges="keyboardHidden|orientation|screenSize">
84
85            <intent-filter>
86                <action android:name="android.intent.action.VIEW"/>
87                <category android:name="android.intent.category.DEFAULT"/>
88                <!-- TODO(b/123768134) Investigate which schemes, mime types, etc to support -->
89                <data android:scheme="content"/>
90                <data android:mimeType="audio/*"/>
91            </intent-filter>
92
93        </activity>
94
95        <activity
96            android:name=".activity.VideoPlayerActivity"
97            android:exported="true"
98            android:configChanges="keyboardHidden|orientation|screenSize">
99
100            <intent-filter>
101                <action android:name="android.intent.action.VIEW"/>
102                <category android:name="android.intent.category.DEFAULT"/>
103                <!-- TODO(b/123768100) Investigate which schemes, mime types, etc to support -->
104                <data android:scheme="content"/>
105                <data android:mimeType="video/*"/>
106            </intent-filter>
107
108        </activity>
109
110        <!-- TODO(b/123711288) Handle music app intents;
111                  https://developer.android.com/reference/android/content/Intent.html#CATEGORY_APP_MUSIC
112                  https://developer.android.com/reference/android/provider/MediaStore.html#INTENT_ACTION_MUSIC_PLAYER -->
113
114        <!-- TODO(b/123711069) Handle play from search;
115                  https://developer.android.com/guide/components/intents-common#PlaySearch
116                  https://developer.android.com/reference/android/provider/MediaStore.html#INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH
117                  https://developer.android.com/reference/android/provider/MediaStore#INTENT_ACTION_MEDIA_SEARCH
118                  https://developer.android.com/reference/android/provider/MediaStore#INTENT_ACTION_TEXT_OPEN_FROM_SEARCH
119                  https://developer.android.com/reference/android/provider/MediaStore#INTENT_ACTION_VIDEO_PLAY_FROM_SEARCH -->
120
121    </application>
122
123</manifest>
124