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