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