1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2012 Andrew Neal
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
16 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
17 package="com.andrew.apollo"
18 android:versionCode="2"
19 android:versionName="1.1" >
21 <!-- ICS to Jelly Bean -->
23 android:minSdkVersion="14"
24 android:targetSdkVersion="17" />
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" />
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" >
57 android:name="android.app.default_searchable"
58 android:value=".ui.activities.SearchActivity" />
59 <!-- Main activity -->
61 android:name=".ui.activities.HomeActivity"
62 android:windowSoftInputMode="adjustPan" >
64 <action android:name="android.intent.action.MAIN" />
65 <action android:name="android.intent.action.MUSIC_PLAYER" />
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" />
74 android:name=".ui.activities.AudioPlayerActivity"
75 android:clearTaskOnLaunch="true"
76 android:exported="true"
77 android:launchMode="singleTask"
78 android:windowSoftInputMode="adjustPan" >
80 <action android:name="android.intent.action.VIEW" />
82 <category android:name="android.intent.category.DEFAULT" />
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" />
92 <action android:name="android.intent.action.VIEW" />
94 <category android:name="android.intent.category.DEFAULT" />
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" />
103 <action android:name="android.intent.action.VIEW" />
105 <category android:name="android.intent.category.DEFAULT" />
106 <category android:name="android.intent.category.BROWSABLE" />
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" />
115 <action android:name="com.andrew.apollo.AUDIO_PLAYER" />
117 <category android:name="android.intent.category.DEFAULT" />
121 <!-- Profile phone Activity -->
123 android:name=".ui.activities.ProfileActivity"
124 android:excludeFromRecents="true" />
125 <!-- Shortcut launcher Activity -->
127 android:name=".ui.activities.ShortcutActivity"
128 android:excludeFromRecents="true"
129 android:exported="true"
130 android:theme="@style/Theme.Transparent" >
132 <action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
134 <category android:name="android.intent.category.DEFAULT" />
137 <!-- Search interface -->
139 android:name=".ui.activities.SearchActivity"
140 android:exported="true" >
142 <action android:name="android.intent.action.SEARCH" />
143 <action android:name="android.intent.action.MEDIA_SEARCH" />
145 <category android:name="android.intent.category.DEFAULT" />
149 android:name="android.app.searchable"
150 android:resource="@xml/searchable" />
152 <!-- Used to set options -->
154 android:name=".ui.activities.SettingsActivity"
155 android:label="@string/menu_settings"
156 android:theme="@style/Apollo.Theme.Dark" />
157 <!-- Themes Activity -->
159 android:name=".ui.activities.ThemesActivity"
160 android:excludeFromRecents="true" />
161 <!-- 4x1 App Widget -->
163 android:name="com.andrew.apollo.appwidgets.AppWidgetSmall"
164 android:exported="false"
165 android:label="@string/app_widget_small" >
167 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
171 android:name="android.appwidget.provider"
172 android:resource="@xml/app_widget_small" />
174 <!-- 4x2 App Widget -->
176 android:name="com.andrew.apollo.appwidgets.AppWidgetLarge"
177 android:exported="false"
178 android:label="@string/app_widget_large" >
180 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
184 android:name="android.appwidget.provider"
185 android:resource="@xml/app_widget_large" />
187 <!-- 4x2 alternate App Widget -->
189 android:name="com.andrew.apollo.appwidgets.AppWidgetLargeAlternate"
190 android:exported="false"
191 android:label="@string/app_widget_large_alt" >
193 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
197 android:name="android.appwidget.provider"
198 android:resource="@xml/app_widget_large_alternate" />
200 <!-- Resizable recently listened App Widget -->
202 android:name="com.andrew.apollo.appwidgets.RecentWidgetProvider"
203 android:exported="false"
204 android:label="@string/app_widget_recent" >
206 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
208 <!-- This specifies the widget provider info -->
210 android:name="android.appwidget.provider"
211 android:resource="@xml/app_widget_recents" />
213 <!-- The service serving the RemoteViews to the recently listened App Widget -->
215 android:name="com.andrew.apollo.appwidgets.RecentWidgetService"
216 android:permission="android.permission.BIND_REMOTEVIEWS" />
217 <!-- Media button receiver -->
218 <receiver android:name=".MediaButtonIntentReceiver" >
220 <action android:name="android.intent.action.MEDIA_BUTTON" />
221 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
224 <!-- Music service -->
226 android:name=".MusicPlaybackService"
227 android:label="@string/app_name"
228 android:process=":main" />