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 | /> |
Jeff Hamilton | 333bf19 | 2009-12-14 00:48:30 -0600 | [diff] [blame^] | 34 | <activity android:name="MusicBrowserActivity" |
| 35 | android:theme="@android:style/Theme.NoTitleBar" |
| 36 | > |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 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> |
Marco Nelissen | 9882f54 | 2009-08-14 10:06:15 -0700 | [diff] [blame] | 42 | </activity> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 43 | <receiver android:name="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. --> |
Marco Nelissen | ec0c57a | 2009-12-12 12:27:11 -0800 | [diff] [blame] | 60 | <activity android:name="MediaPlaybackActivityStarter" |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 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"/> |
The Android Open Source Project | c85f677 | 2009-03-18 17:39:48 -0700 | [diff] [blame] | 75 | <data android:mimeType="application/itunes"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 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> |
Marco Nelissen | ec0c57a | 2009-12-12 12:27:11 -0800 | [diff] [blame] | 82 | <activity android:name="MediaPlaybackActivity" |
| 83 | android:theme="@android:style/Theme.NoTitleBar" |
| 84 | android:label="@string/mediaplaybacklabel" > |
| 85 | </activity> |
| 86 | |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 87 | <activity android:name="StreamStarter" android:theme="@android:style/Theme.Dialog" > |
| 88 | <intent-filter> |
| 89 | <action android:name="android.intent.action.VIEW" /> |
| 90 | <category android:name="android.intent.category.DEFAULT" /> |
| 91 | <category android:name="android.intent.category.BROWSABLE" /> |
| 92 | <data android:scheme="http" /> |
| 93 | <data android:mimeType="audio/mp3"/> |
| 94 | <data android:mimeType="audio/x-mp3"/> |
| 95 | <data android:mimeType="audio/mpeg"/> |
| 96 | <data android:mimeType="audio/mp4"/> |
| 97 | <data android:mimeType="audio/mp4a-latm"/> |
| 98 | </intent-filter> |
| 99 | </activity> |
| 100 | <activity android:name="ArtistAlbumBrowserActivity"> |
| 101 | <intent-filter> |
| 102 | <action android:name="android.intent.action.PICK" /> |
| 103 | <category android:name="android.intent.category.DEFAULT" /> |
| 104 | <data android:mimeType="vnd.android.cursor.dir/artistalbum"/> |
| 105 | </intent-filter> |
| 106 | </activity> |
| 107 | <activity android:name="AlbumBrowserActivity"> |
| 108 | <intent-filter> |
| 109 | <action android:name="android.intent.action.PICK" /> |
| 110 | <category android:name="android.intent.category.DEFAULT" /> |
| 111 | <data android:mimeType="vnd.android.cursor.dir/album"/> |
| 112 | </intent-filter> |
| 113 | </activity> |
| 114 | <activity android:name="NowPlayingActivity"> |
| 115 | <intent-filter> |
| 116 | <action android:name="android.intent.action.PICK" /> |
| 117 | <category android:name="android.intent.category.DEFAULT" /> |
| 118 | <data android:mimeType="vnd.android.cursor.dir/nowplaying"/> |
| 119 | </intent-filter> |
| 120 | </activity> |
| 121 | <activity android:name="TrackBrowserActivity"> |
| 122 | <intent-filter> |
| 123 | <action android:name="android.intent.action.EDIT" /> |
| 124 | <action android:name="android.intent.action.PICK" /> |
| 125 | <category android:name="android.intent.category.DEFAULT" /> |
| 126 | <data android:mimeType="vnd.android.cursor.dir/track"/> |
| 127 | </intent-filter> |
| 128 | </activity> |
| 129 | <activity android:name="QueryBrowserActivity" |
| 130 | android:theme="@android:style/Theme.NoTitleBar"> |
| 131 | <intent-filter> |
| 132 | <action android:name="android.intent.action.SEARCH" /> |
Marco Nelissen | 9882f54 | 2009-08-14 10:06:15 -0700 | [diff] [blame] | 133 | <action android:name="android.intent.action.MEDIA_SEARCH" /> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 134 | <category android:name="android.intent.category.DEFAULT" /> |
| 135 | </intent-filter> |
| 136 | <meta-data |
| 137 | android:name="android.app.searchable" |
| 138 | android:resource="@xml/searchable" |
| 139 | /> |
| 140 | </activity> |
| 141 | <activity android:name="PlaylistBrowserActivity" android:label="@string/musicbrowserlabel"> |
| 142 | <intent-filter> |
| 143 | <action android:name="android.intent.action.PICK" /> |
| 144 | <category android:name="android.intent.category.DEFAULT" /> |
| 145 | <data android:mimeType="vnd.android.cursor.dir/playlist"/> |
| 146 | </intent-filter> |
| 147 | <intent-filter> |
| 148 | <action android:name="android.intent.action.VIEW" /> |
| 149 | <category android:name="android.intent.category.DEFAULT" /> |
| 150 | <data android:mimeType="vnd.android.cursor.dir/playlist"/> |
| 151 | </intent-filter> |
| 152 | </activity> |
| 153 | <activity-alias android:name="PlaylistShortcutActivity" |
| 154 | android:targetActivity="PlaylistBrowserActivity" |
Romain Guy | 8801110 | 2009-03-24 18:08:41 -0700 | [diff] [blame] | 155 | android:label="@string/musicshortcutlabel" |
| 156 | android:icon="@drawable/ic_launcher_shortcut_music_playlist"> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 157 | |
| 158 | <intent-filter> |
| 159 | <action android:name="android.intent.action.CREATE_SHORTCUT" /> |
| 160 | <category android:name="android.intent.category.DEFAULT" /> |
| 161 | </intent-filter> |
| 162 | |
| 163 | </activity-alias> |
| 164 | <activity android:name="VideoBrowserActivity" |
| 165 | android:taskAffinity="android.task.video" |
| 166 | android:label="@string/videobrowserlabel" |
| 167 | android:icon="@drawable/app_video"> |
| 168 | <intent-filter> |
| 169 | <action android:name="android.intent.action.PICK" /> |
| 170 | <category android:name="android.intent.category.DEFAULT" /> |
| 171 | <data android:mimeType="vnd.android.cursor.dir/video"/> |
| 172 | </intent-filter> |
| 173 | <!-- |
| 174 | <intent-filter> |
| 175 | <action android:name="android.intent.action.MAIN" /> |
| 176 | <category android:name="android.intent.category.DEFAULT" /> |
| 177 | <category android:name="android.intent.category.LAUNCHER" /> |
| 178 | </intent-filter> |
| 179 | --> |
| 180 | </activity> |
| 181 | <activity android:name="MediaPickerActivity" android:label="@string/mediapickerlabel"> |
| 182 | <!-- |
| 183 | <intent-filter> |
| 184 | <action android:name="android.intent.action.PICK" /> |
| 185 | <category android:name="android.intent.category.DEFAULT" /> |
| 186 | <data android:mimeType="media/*"/> |
| 187 | <data android:mimeType="audio/*"/> |
| 188 | <data android:mimeType="application/ogg"/> |
| 189 | <data android:mimeType="application/x-ogg"/> |
| 190 | <data android:mimeType="video/*"/> |
| 191 | </intent-filter> |
| 192 | <intent-filter> |
| 193 | <action android:name="android.intent.action.GET_CONTENT" /> |
| 194 | <category android:name="android.intent.category.DEFAULT" /> |
| 195 | <category android:name="android.intent.category.OPENABLE" /> |
| 196 | <data android:mimeType="media/*"/> |
| 197 | <data android:mimeType="audio/*"/> |
| 198 | <data android:mimeType="application/ogg"/> |
| 199 | <data android:mimeType="application/x-ogg"/> |
| 200 | <data android:mimeType="video/*"/> |
| 201 | </intent-filter> |
| 202 | --> |
| 203 | </activity> |
| 204 | <activity android:name="MusicPicker" android:label="@string/music_picker_title"> |
| 205 | <!-- First way to invoke us: someone asks to get content of |
| 206 | any of the audio types we support. --> |
| 207 | <intent-filter> |
| 208 | <action android:name="android.intent.action.GET_CONTENT" /> |
| 209 | <category android:name="android.intent.category.DEFAULT" /> |
| 210 | <category android:name="android.intent.category.OPENABLE" /> |
| 211 | <data android:mimeType="audio/*"/> |
| 212 | <data android:mimeType="application/ogg"/> |
| 213 | <data android:mimeType="application/x-ogg"/> |
| 214 | </intent-filter> |
| 215 | <!-- Second way to invoke us: someone asks to pick an item from |
| 216 | some media Uri. --> |
| 217 | <intent-filter> |
| 218 | <action android:name="android.intent.action.PICK" /> |
| 219 | <category android:name="android.intent.category.DEFAULT" /> |
| 220 | <category android:name="android.intent.category.OPENABLE" /> |
| 221 | <data android:mimeType="vnd.android.cursor.dir/audio"/> |
| 222 | </intent-filter> |
| 223 | </activity> |
| 224 | <activity android:name="CreatePlaylist" android:theme="@android:style/Theme.Dialog" /> |
| 225 | <activity android:name="RenamePlaylist" android:theme="@android:style/Theme.Dialog" /> |
| 226 | <activity android:name="WeekSelector" android:theme="@android:style/Theme.Dialog" /> |
| 227 | <activity android:name="DeleteItems" android:theme="@android:style/Theme.Dialog" /> |
| 228 | <activity android:name="ScanningProgress" android:theme="@android:style/Theme.Dialog" /> |
| 229 | <service android:name="MediaPlaybackService" android:exported="true" /> |
| 230 | |
The Android Open Source Project | 490384b | 2009-03-11 12:11:59 -0700 | [diff] [blame] | 231 | <receiver android:name="MediaAppWidgetProvider"> |
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 | <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 234 | </intent-filter> |
The Android Open Source Project | 490384b | 2009-03-11 12:11:59 -0700 | [diff] [blame] | 235 | <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] | 236 | </receiver> |
| 237 | </application> |
| 238 | </manifest> |