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