OSDN Git Service

Merge "Update the mdpi resources with 2.0 style icons"
[android-x86/packages-apps-Music.git] / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2007 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 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
18         package="com.android.music">
19     <uses-permission android:name="android.permission.WRITE_SETTINGS" />
20     <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
21     <uses-permission android:name="android.permission.WAKE_LOCK" />
22     <uses-permission android:name="android.permission.INTERNET" />
23     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
24     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
25
26     <application android:icon="@drawable/app_music"
27         android:label="@string/musicbrowserlabel"
28         android:taskAffinity="android.task.music"
29         android:allowTaskReparenting="true">
30         <meta-data
31             android:name="android.app.default_searchable"
32             android:value=".QueryBrowserActivity"
33         />
34         <activity android:name="com.android.music.MusicBrowserActivity"
35             android:theme="@android:style/Theme.NoTitleBar"
36         >
37             <intent-filter>
38                 <action android:name="android.intent.action.MAIN" />
39                 <category android:name="android.intent.category.DEFAULT" />
40                 <category android:name="android.intent.category.LAUNCHER" />
41             </intent-filter>
42         </activity>
43         <receiver android:name="com.android.music.MediaButtonIntentReceiver">
44             <intent-filter>
45                 <action android:name="android.intent.action.MEDIA_BUTTON" />
46                 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
47             </intent-filter>
48         </receiver>
49         <!-- This is the "current music playing" panel, which has special
50              launch behavior.  We clear its task affinity, so it will not
51              be associated with the main media task and if launched
52              from a notification will not bring the rest of the media app
53              to the foreground.  We make it singleTask so that when others
54              launch it (such as media) we will launch in to our own task.
55              We set clearTaskOnLaunch because the user
56              can go to a playlist from this activity, so if they later return
57              to it we want it back in its initial state.  We exclude from
58              recents since this is accessible through a notification when
59              appropriate. -->
60         <activity android:name="com.android.music.MediaPlaybackActivityStarter"
61                 android:theme="@android:style/Theme.NoTitleBar"
62                 android:label="@string/mediaplaybacklabel"
63                 android:taskAffinity=""
64                 android:launchMode="singleTask"
65                 android:clearTaskOnLaunch="true"
66                 android:excludeFromRecents="true" >
67             <intent-filter>
68                 <action android:name="android.intent.action.VIEW" />
69                 <category android:name="android.intent.category.DEFAULT" />
70                 <data android:scheme="content"/>
71                 <data android:scheme="file"/>
72                 <data android:mimeType="audio/*"/>
73                 <data android:mimeType="application/ogg"/>
74                 <data android:mimeType="application/x-ogg"/>
75                 <data android:mimeType="application/itunes"/>
76             </intent-filter>
77             <intent-filter>
78                 <action android:name="com.android.music.PLAYBACK_VIEWER" />
79                 <category android:name="android.intent.category.DEFAULT" />
80             </intent-filter>
81         </activity>
82         <activity android:name="com.android.music.MediaPlaybackActivity"
83                 android:theme="@android:style/Theme.NoTitleBar"
84                 android:label="@string/mediaplaybacklabel" >
85         </activity>
86
87         <activity android:name="com.android.music.StreamStarter"
88                 android:theme="@android:style/Theme.Dialog" >
89             <intent-filter>
90                 <action android:name="android.intent.action.VIEW" />
91                 <category android:name="android.intent.category.DEFAULT" />
92                 <category android:name="android.intent.category.BROWSABLE" />
93                 <data android:scheme="http" />
94                 <data android:mimeType="audio/mp3"/>
95                 <data android:mimeType="audio/x-mp3"/>
96                 <data android:mimeType="audio/mpeg"/>
97                 <data android:mimeType="audio/mp4"/>
98                 <data android:mimeType="audio/mp4a-latm"/>
99             </intent-filter>
100         </activity>
101         <activity android:name="com.android.music.ArtistAlbumBrowserActivity">
102             <intent-filter>
103                 <action android:name="android.intent.action.PICK" />
104                 <category android:name="android.intent.category.DEFAULT" />
105                 <data android:mimeType="vnd.android.cursor.dir/artistalbum"/>
106             </intent-filter>
107         </activity>
108         <activity android:name="com.android.music.AlbumBrowserActivity">
109             <intent-filter>
110                 <action android:name="android.intent.action.PICK" />
111                 <category android:name="android.intent.category.DEFAULT" />
112                 <data android:mimeType="vnd.android.cursor.dir/album"/>
113             </intent-filter>
114         </activity>
115         <activity android:name="com.android.music.NowPlayingActivity">
116             <intent-filter>
117                 <action android:name="android.intent.action.PICK" />
118                 <category android:name="android.intent.category.DEFAULT" />
119                 <data android:mimeType="vnd.android.cursor.dir/nowplaying"/>
120             </intent-filter>
121         </activity>
122         <activity android:name="com.android.music.TrackBrowserActivity">
123             <intent-filter>
124                 <action android:name="android.intent.action.EDIT" />
125                 <action android:name="android.intent.action.PICK" />
126                 <category android:name="android.intent.category.DEFAULT" />
127                 <data android:mimeType="vnd.android.cursor.dir/track"/>
128             </intent-filter>
129         </activity>
130         <activity android:name="com.android.music.QueryBrowserActivity"
131                 android:theme="@android:style/Theme.NoTitleBar">
132             <intent-filter>
133                 <action android:name="android.intent.action.SEARCH" />
134                 <action android:name="android.intent.action.MEDIA_SEARCH" />
135                 <category android:name="android.intent.category.DEFAULT" />
136             </intent-filter>
137             <meta-data
138                 android:name="android.app.searchable"
139                 android:resource="@xml/searchable"
140             />
141         </activity>
142         <activity android:name="com.android.music.PlaylistBrowserActivity"
143                 android:label="@string/musicbrowserlabel">
144             <intent-filter>
145                 <action android:name="android.intent.action.PICK" />
146                 <category android:name="android.intent.category.DEFAULT" />
147                 <data android:mimeType="vnd.android.cursor.dir/playlist"/>
148             </intent-filter>
149             <intent-filter>
150                 <action android:name="android.intent.action.VIEW" />
151                 <category android:name="android.intent.category.DEFAULT" />
152                 <data android:mimeType="vnd.android.cursor.dir/playlist"/>
153             </intent-filter>
154         </activity>
155         <activity-alias android:name="com.android.music.PlaylistShortcutActivity"
156             android:targetActivity="com.android.music.PlaylistBrowserActivity"
157             android:label="@string/musicshortcutlabel"
158             android:icon="@drawable/ic_launcher_shortcut_music_playlist">
159
160             <intent-filter>
161                 <action android:name="android.intent.action.CREATE_SHORTCUT" />
162                 <category android:name="android.intent.category.DEFAULT" />
163             </intent-filter>
164
165         </activity-alias>
166         <activity android:name="com.android.music.VideoBrowserActivity"
167             android:taskAffinity="android.task.video"
168             android:label="@string/videobrowserlabel"
169             android:icon="@drawable/app_video">
170             <intent-filter>
171                 <action android:name="android.intent.action.PICK" />
172                 <category android:name="android.intent.category.DEFAULT" />
173                 <data android:mimeType="vnd.android.cursor.dir/video"/>
174             </intent-filter>
175 <!--
176             <intent-filter>
177                 <action android:name="android.intent.action.MAIN" />
178                 <category android:name="android.intent.category.DEFAULT" />
179                 <category android:name="android.intent.category.LAUNCHER" />
180             </intent-filter>
181 -->
182         </activity>
183         <activity android:name="com.android.music.MediaPickerActivity"
184                 android:label="@string/mediapickerlabel">
185 <!--
186             <intent-filter>
187                 <action android:name="android.intent.action.PICK" />
188                 <category android:name="android.intent.category.DEFAULT" />
189                 <data android:mimeType="media/*"/>
190                 <data android:mimeType="audio/*"/>
191                 <data android:mimeType="application/ogg"/>
192                 <data android:mimeType="application/x-ogg"/>
193                 <data android:mimeType="video/*"/>
194             </intent-filter>
195             <intent-filter>
196                 <action android:name="android.intent.action.GET_CONTENT" />
197                 <category android:name="android.intent.category.DEFAULT" />
198                 <category android:name="android.intent.category.OPENABLE" />
199                 <data android:mimeType="media/*"/>
200                 <data android:mimeType="audio/*"/>
201                 <data android:mimeType="application/ogg"/>
202                 <data android:mimeType="application/x-ogg"/>
203                 <data android:mimeType="video/*"/>
204             </intent-filter>
205 -->
206         </activity>
207         <activity android:name="com.android.music.MusicPicker"
208                 android:label="@string/music_picker_title">
209             <!-- First way to invoke us: someone asks to get content of
210                  any of the audio types we support. -->
211             <intent-filter>
212                 <action android:name="android.intent.action.GET_CONTENT" />
213                 <category android:name="android.intent.category.DEFAULT" />
214                 <category android:name="android.intent.category.OPENABLE" />
215                 <data android:mimeType="audio/*"/>
216                 <data android:mimeType="application/ogg"/>
217                 <data android:mimeType="application/x-ogg"/>
218             </intent-filter>
219             <!-- Second way to invoke us: someone asks to pick an item from
220                  some media Uri. -->
221             <intent-filter>
222                 <action android:name="android.intent.action.PICK" />
223                 <category android:name="android.intent.category.DEFAULT" />
224                 <category android:name="android.intent.category.OPENABLE" />
225                 <data android:mimeType="vnd.android.cursor.dir/audio"/>
226             </intent-filter>
227         </activity>
228         <activity android:name="com.android.music.CreatePlaylist"
229             android:theme="@android:style/Theme.Dialog" />
230         <activity android:name="com.android.music.RenamePlaylist"
231             android:theme="@android:style/Theme.Dialog" />
232         <activity android:name="com.android.music.WeekSelector"
233             android:theme="@android:style/Theme.Dialog" />
234         <activity android:name="com.android.music.DeleteItems"
235             android:theme="@android:style/Theme.Dialog" />
236         <activity android:name="com.android.music.ScanningProgress"
237             android:theme="@android:style/Theme.Dialog" />
238         <service android:name="com.android.music.MediaPlaybackService"
239             android:exported="true" />
240
241         <receiver android:name="com.android.music.MediaAppWidgetProvider">
242             <intent-filter>
243                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
244             </intent-filter>
245             <meta-data android:name="android.appwidget.provider" android:resource="@xml/appwidget_info" />
246         </receiver>
247     </application>
248 </manifest>