Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Marco Brohet | 8bd9470 | 2013-03-17 09:53:44 +0100 | [diff] [blame] | 2 | <!-- Copyright (C) 2012 Andrew Neal |
| 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 | --> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 16 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 17 | package="com.andrew.apollo" |
Danny Baumann | 1ad22a3 | 2013-02-24 13:32:05 +0100 | [diff] [blame] | 18 | android:versionCode="2" |
| 19 | android:versionName="1.1" > |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 20 | |
Danny Baumann | 6677f51 | 2013-02-23 13:19:00 +0100 | [diff] [blame] | 21 | <!-- ICS to Jelly Bean --> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 22 | <uses-sdk |
Danny Baumann | 6677f51 | 2013-02-23 13:19:00 +0100 | [diff] [blame] | 23 | android:minSdkVersion="14" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 24 | android:targetSdkVersion="17" /> |
| 25 | |
| 26 | <!-- Used for caching and creating new playlists --> |
| 27 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
| 28 | <!-- Used to check for a network connection --> |
| 29 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 30 | <!-- Used to download images --> |
| 31 | <uses-permission android:name="android.permission.INTERNET" /> |
| 32 | <!-- Used to keep the service running when the phone sleeps --> |
| 33 | <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| 34 | <!-- The main service uses a sticky broadcast --> |
| 35 | <uses-permission android:name="android.permission.BROADCAST_STICKY" /> |
| 36 | <!-- Lower or raise the music based on the phone state --> |
| 37 | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> |
| 38 | <!-- Used to set the devices's ringtone --> |
| 39 | <uses-permission android:name="android.permission.WRITE_SETTINGS" /> |
| 40 | <!-- Used to create launcher shortcuts --> |
| 41 | <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" /> |
| 42 | <!-- Used to check if the app is in the background --> |
| 43 | <uses-permission android:name="android.permission.GET_TASKS" /> |
| 44 | |
| 45 | <application |
| 46 | android:name=".ApolloApplication" |
| 47 | android:allowBackup="true" |
| 48 | android:allowTaskReparenting="true" |
| 49 | android:hardwareAccelerated="@bool/config_hardwareAccelerated" |
| 50 | android:icon="@drawable/ic_launcher" |
| 51 | android:label="@string/app_name" |
| 52 | android:largeHeap="@bool/config_largeHeap" |
| 53 | android:taskAffinity="com.andrew.apollo.task" > |
| 54 | |
| 55 | <!-- Searchable --> |
| 56 | <meta-data |
| 57 | android:name="android.app.default_searchable" |
| 58 | android:value=".ui.activities.SearchActivity" /> |
| 59 | <!-- Main activity --> |
| 60 | <activity |
| 61 | android:name=".ui.activities.HomeActivity" |
| 62 | android:windowSoftInputMode="adjustPan" > |
| 63 | <intent-filter> |
| 64 | <action android:name="android.intent.action.MAIN" /> |
| 65 | <action android:name="android.intent.action.MUSIC_PLAYER" /> |
| 66 | |
| 67 | <category android:name="android.intent.category.LAUNCHER" /> |
| 68 | <category android:name="android.intent.category.APP_MUSIC" /> |
| 69 | <category android:name="android.intent.category.DEFAULT" /> |
| 70 | </intent-filter> |
| 71 | </activity> |
| 72 | <!-- Now playing --> |
| 73 | <activity |
| 74 | android:name=".ui.activities.AudioPlayerActivity" |
| 75 | android:clearTaskOnLaunch="true" |
| 76 | android:exported="true" |
| 77 | android:launchMode="singleTask" |
| 78 | android:windowSoftInputMode="adjustPan" > |
| 79 | <intent-filter> |
| 80 | <action android:name="android.intent.action.VIEW" /> |
| 81 | |
| 82 | <category android:name="android.intent.category.DEFAULT" /> |
| 83 | |
| 84 | <data android:scheme="content" /> |
| 85 | <data android:host="media" /> |
| 86 | <data android:mimeType="audio/*" /> |
| 87 | <data android:mimeType="application/ogg" /> |
| 88 | <data android:mimeType="application/x-ogg" /> |
| 89 | <data android:mimeType="application/itunes" /> |
| 90 | </intent-filter> |
| 91 | <intent-filter> |
| 92 | <action android:name="android.intent.action.VIEW" /> |
| 93 | |
| 94 | <category android:name="android.intent.category.DEFAULT" /> |
| 95 | |
| 96 | <data android:scheme="file" /> |
| 97 | <data android:mimeType="audio/*" /> |
| 98 | <data android:mimeType="application/ogg" /> |
| 99 | <data android:mimeType="application/x-ogg" /> |
| 100 | <data android:mimeType="application/itunes" /> |
| 101 | </intent-filter> |
| 102 | <intent-filter> |
| 103 | <action android:name="android.intent.action.VIEW" /> |
| 104 | |
| 105 | <category android:name="android.intent.category.DEFAULT" /> |
| 106 | <category android:name="android.intent.category.BROWSABLE" /> |
| 107 | |
| 108 | <data android:scheme="http" /> |
| 109 | <data android:mimeType="audio/*" /> |
| 110 | <data android:mimeType="application/ogg" /> |
| 111 | <data android:mimeType="application/x-ogg" /> |
| 112 | <data android:mimeType="application/itunes" /> |
| 113 | </intent-filter> |
| 114 | <intent-filter> |
Danny Baumann | ceda239 | 2013-04-23 11:33:41 +0200 | [diff] [blame^] | 115 | <action android:name="android.intent.action.VIEW" /> |
| 116 | |
| 117 | <category android:name="android.intent.category.DEFAULT" /> |
| 118 | |
| 119 | <data android:mimeType="vnd.android.cursor.dir/playlist" /> |
| 120 | </intent-filter> |
| 121 | <intent-filter> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 122 | <action android:name="com.andrew.apollo.AUDIO_PLAYER" /> |
| 123 | |
| 124 | <category android:name="android.intent.category.DEFAULT" /> |
| 125 | </intent-filter> |
| 126 | </activity> |
| 127 | |
| 128 | <!-- Profile phone Activity --> |
| 129 | <activity |
| 130 | android:name=".ui.activities.ProfileActivity" |
| 131 | android:excludeFromRecents="true" /> |
| 132 | <!-- Shortcut launcher Activity --> |
| 133 | <activity |
| 134 | android:name=".ui.activities.ShortcutActivity" |
| 135 | android:excludeFromRecents="true" |
| 136 | android:exported="true" |
| 137 | android:theme="@style/Theme.Transparent" > |
| 138 | <intent-filter> |
| 139 | <action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" /> |
| 140 | |
| 141 | <category android:name="android.intent.category.DEFAULT" /> |
| 142 | </intent-filter> |
| 143 | </activity> |
| 144 | <!-- Search interface --> |
| 145 | <activity |
| 146 | android:name=".ui.activities.SearchActivity" |
| 147 | android:exported="true" > |
| 148 | <intent-filter> |
| 149 | <action android:name="android.intent.action.SEARCH" /> |
| 150 | <action android:name="android.intent.action.MEDIA_SEARCH" /> |
| 151 | |
| 152 | <category android:name="android.intent.category.DEFAULT" /> |
| 153 | </intent-filter> |
| 154 | |
| 155 | <meta-data |
| 156 | android:name="android.app.searchable" |
| 157 | android:resource="@xml/searchable" /> |
| 158 | </activity> |
| 159 | <!-- Used to set options --> |
| 160 | <activity |
| 161 | android:name=".ui.activities.SettingsActivity" |
| 162 | android:label="@string/menu_settings" |
| 163 | android:theme="@style/Apollo.Theme.Dark" /> |
| 164 | <!-- Themes Activity --> |
| 165 | <activity |
| 166 | android:name=".ui.activities.ThemesActivity" |
| 167 | android:excludeFromRecents="true" /> |
| 168 | <!-- 4x1 App Widget --> |
| 169 | <receiver |
| 170 | android:name="com.andrew.apollo.appwidgets.AppWidgetSmall" |
| 171 | android:exported="false" |
| 172 | android:label="@string/app_widget_small" > |
| 173 | <intent-filter> |
| 174 | <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> |
| 175 | </intent-filter> |
| 176 | |
| 177 | <meta-data |
| 178 | android:name="android.appwidget.provider" |
| 179 | android:resource="@xml/app_widget_small" /> |
| 180 | </receiver> |
| 181 | <!-- 4x2 App Widget --> |
| 182 | <receiver |
| 183 | android:name="com.andrew.apollo.appwidgets.AppWidgetLarge" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 184 | android:exported="false" |
| 185 | android:label="@string/app_widget_large" > |
| 186 | <intent-filter> |
| 187 | <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> |
| 188 | </intent-filter> |
| 189 | |
| 190 | <meta-data |
| 191 | android:name="android.appwidget.provider" |
| 192 | android:resource="@xml/app_widget_large" /> |
| 193 | </receiver> |
| 194 | <!-- 4x2 alternate App Widget --> |
| 195 | <receiver |
| 196 | android:name="com.andrew.apollo.appwidgets.AppWidgetLargeAlternate" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 197 | android:exported="false" |
| 198 | android:label="@string/app_widget_large_alt" > |
| 199 | <intent-filter> |
| 200 | <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> |
| 201 | </intent-filter> |
| 202 | |
| 203 | <meta-data |
| 204 | android:name="android.appwidget.provider" |
| 205 | android:resource="@xml/app_widget_large_alternate" /> |
| 206 | </receiver> |
| 207 | <!-- Resizable recently listened App Widget --> |
| 208 | <receiver |
| 209 | android:name="com.andrew.apollo.appwidgets.RecentWidgetProvider" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 210 | android:exported="false" |
| 211 | android:label="@string/app_widget_recent" > |
| 212 | <intent-filter> |
| 213 | <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> |
| 214 | </intent-filter> |
| 215 | <!-- This specifies the widget provider info --> |
| 216 | <meta-data |
| 217 | android:name="android.appwidget.provider" |
| 218 | android:resource="@xml/app_widget_recents" /> |
| 219 | </receiver> |
| 220 | <!-- The service serving the RemoteViews to the recently listened App Widget --> |
| 221 | <service |
| 222 | android:name="com.andrew.apollo.appwidgets.RecentWidgetService" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 223 | android:permission="android.permission.BIND_REMOTEVIEWS" /> |
| 224 | <!-- Media button receiver --> |
| 225 | <receiver android:name=".MediaButtonIntentReceiver" > |
| 226 | <intent-filter> |
| 227 | <action android:name="android.intent.action.MEDIA_BUTTON" /> |
| 228 | <action android:name="android.media.AUDIO_BECOMING_NOISY" /> |
| 229 | </intent-filter> |
| 230 | </receiver> |
| 231 | <!-- Music service --> |
| 232 | <service |
| 233 | android:name=".MusicPlaybackService" |
| 234 | android:label="@string/app_name" |
| 235 | android:process=":main" /> |
| 236 | </application> |
| 237 | |
Danny Baumann | 6677f51 | 2013-02-23 13:19:00 +0100 | [diff] [blame] | 238 | </manifest> |