1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright (C) 2012 Andrew Neal
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
17 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
18 package="com.andrew.apollo"
19 android:versionCode="1"
20 android:versionName="1.0" >
22 <!-- ICS to Jelly Bean -->
24 android:minSdkVersion="14"
25 android:targetSdkVersion="17" />
27 <!-- Used for caching and creating new playlists -->
28 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
29 <!-- Used to check for a network connection -->
30 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
31 <!-- Used to download images -->
32 <uses-permission android:name="android.permission.INTERNET" />
33 <!-- Used to keep the service running when the phone sleeps -->
34 <uses-permission android:name="android.permission.WAKE_LOCK" />
35 <!-- The main service uses a sticky broadcast -->
36 <uses-permission android:name="android.permission.BROADCAST_STICKY" />
37 <!-- Lower or raise the music based on the phone state -->
38 <uses-permission android:name="android.permission.READ_PHONE_STATE" />
39 <!-- Used to set the devices's ringtone -->
40 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
41 <!-- Used to create launcher shortcuts -->
42 <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
43 <!-- Used to check if the app is in the background -->
44 <uses-permission android:name="android.permission.GET_TASKS" />
47 android:name=".ApolloApplication"
48 android:allowBackup="true"
49 android:allowTaskReparenting="true"
50 android:hardwareAccelerated="@bool/config_hardwareAccelerated"
51 android:icon="@drawable/ic_launcher"
52 android:label="@string/app_name"
53 android:largeHeap="@bool/config_largeHeap"
54 android:taskAffinity="com.andrew.apollo.task" >
58 android:name="android.app.default_searchable"
59 android:value=".ui.activities.SearchActivity" />
60 <!-- Main activity -->
62 android:name=".ui.activities.HomeActivity"
63 android:windowSoftInputMode="adjustPan" >
65 <action android:name="android.intent.action.MAIN" />
66 <action android:name="android.intent.action.MUSIC_PLAYER" />
68 <category android:name="android.intent.category.LAUNCHER" />
69 <category android:name="android.intent.category.APP_MUSIC" />
70 <category android:name="android.intent.category.DEFAULT" />
75 android:name=".ui.activities.AudioPlayerActivity"
76 android:clearTaskOnLaunch="true"
77 android:exported="true"
78 android:launchMode="singleTask"
79 android:windowSoftInputMode="adjustPan" >
81 <action android:name="android.intent.action.VIEW" />
83 <category android:name="android.intent.category.DEFAULT" />
85 <data android:scheme="content" />
86 <data android:host="media" />
87 <data android:mimeType="audio/*" />
88 <data android:mimeType="application/ogg" />
89 <data android:mimeType="application/x-ogg" />
90 <data android:mimeType="application/itunes" />
93 <action android:name="android.intent.action.VIEW" />
95 <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" />
104 <action android:name="android.intent.action.VIEW" />
106 <category android:name="android.intent.category.DEFAULT" />
107 <category android:name="android.intent.category.BROWSABLE" />
109 <data android:scheme="http" />
110 <data android:mimeType="audio/*" />
111 <data android:mimeType="application/ogg" />
112 <data android:mimeType="application/x-ogg" />
113 <data android:mimeType="application/itunes" />
116 <action android:name="com.andrew.apollo.AUDIO_PLAYER" />
118 <category android:name="android.intent.category.DEFAULT" />
122 <!-- Profile phone Activity -->
124 android:name=".ui.activities.ProfileActivity"
125 android:excludeFromRecents="true" />
126 <!-- Shortcut launcher Activity -->
128 android:name=".ui.activities.ShortcutActivity"
129 android:excludeFromRecents="true"
130 android:exported="true"
131 android:theme="@style/Theme.Transparent" >
133 <action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
135 <category android:name="android.intent.category.DEFAULT" />
138 <!-- Search interface -->
140 android:name=".ui.activities.SearchActivity"
141 android:exported="true" >
143 <action android:name="android.intent.action.SEARCH" />
144 <action android:name="android.intent.action.MEDIA_SEARCH" />
146 <category android:name="android.intent.category.DEFAULT" />
150 android:name="android.app.searchable"
151 android:resource="@xml/searchable" />
153 <!-- Used to set options -->
155 android:name=".ui.activities.SettingsActivity"
156 android:label="@string/menu_settings"
157 android:theme="@style/Apollo.Theme.Dark" />
158 <!-- Themes Activity -->
160 android:name=".ui.activities.ThemesActivity"
161 android:excludeFromRecents="true" />
162 <!-- 4x1 App Widget -->
164 android:name="com.andrew.apollo.appwidgets.AppWidgetSmall"
165 android:exported="false"
166 android:label="@string/app_widget_small" >
168 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
172 android:name="android.appwidget.provider"
173 android:resource="@xml/app_widget_small" />
175 <!-- 4x2 App Widget -->
177 android:name="com.andrew.apollo.appwidgets.AppWidgetLarge"
178 android:enabled="@bool/has_honeycomb"
179 android:exported="false"
180 android:label="@string/app_widget_large" >
182 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
186 android:name="android.appwidget.provider"
187 android:resource="@xml/app_widget_large" />
189 <!-- 4x2 alternate App Widget -->
191 android:name="com.andrew.apollo.appwidgets.AppWidgetLargeAlternate"
192 android:enabled="@bool/has_honeycomb"
193 android:exported="false"
194 android:label="@string/app_widget_large_alt" >
196 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
200 android:name="android.appwidget.provider"
201 android:resource="@xml/app_widget_large_alternate" />
203 <!-- Resizable recently listened App Widget -->
205 android:name="com.andrew.apollo.appwidgets.RecentWidgetProvider"
206 android:enabled="@bool/has_honeycomb"
207 android:exported="false"
208 android:label="@string/app_widget_recent" >
210 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
212 <!-- This specifies the widget provider info -->
214 android:name="android.appwidget.provider"
215 android:resource="@xml/app_widget_recents" />
217 <!-- The service serving the RemoteViews to the recently listened App Widget -->
219 android:name="com.andrew.apollo.appwidgets.RecentWidgetService"
220 android:enabled="@bool/has_honeycomb"
221 android:permission="android.permission.BIND_REMOTEVIEWS" />
222 <!-- Media button receiver -->
223 <receiver android:name=".MediaButtonIntentReceiver" >
225 <action android:name="android.intent.action.MEDIA_BUTTON" />
226 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
229 <!-- Music service -->
231 android:name=".MusicPlaybackService"
232 android:label="@string/app_name"
233 android:process=":main" />