OSDN Git Service

caa2f1da9c82d2b7e8e20c69076ef4b6cb51f57e
[android-x86/packages-apps-Eleven.git] / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
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  -->
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" >
20
21     <!-- ICS to Jelly Bean -->
22     <uses-sdk
23         android:minSdkVersion="14"
24         android:targetSdkVersion="18" />
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     <!-- Allows Apollo to read from External Storage -->
45     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
46
47     <application
48         android:name=".ApolloApplication"
49         android:allowBackup="true"
50         android:allowTaskReparenting="true"
51         android:hardwareAccelerated="@bool/config_hardwareAccelerated"
52         android:icon="@drawable/ic_launcher"
53         android:label="@string/app_name"
54         android:largeHeap="@bool/config_largeHeap"
55         android:taskAffinity="com.andrew.apollo.task" >
56
57         <!-- Searchable -->
58         <meta-data
59             android:name="android.app.default_searchable"
60             android:value=".ui.activities.SearchActivity" />
61         <!-- Main activity -->
62         <activity
63             android:name=".ui.activities.HomeActivity"
64             android:windowSoftInputMode="adjustPan" >
65             <intent-filter>
66                 <action android:name="android.intent.action.MAIN" />
67                 <action android:name="android.intent.action.MUSIC_PLAYER" />
68
69                 <category android:name="android.intent.category.LAUNCHER" />
70                 <category android:name="android.intent.category.APP_MUSIC" />
71                 <category android:name="android.intent.category.DEFAULT" />
72             </intent-filter>
73         </activity>
74         <!-- Now playing -->
75         <activity
76             android:name=".ui.activities.AudioPlayerActivity"
77             android:clearTaskOnLaunch="true"
78             android:exported="true"
79             android:launchMode="singleTask"
80             android:windowSoftInputMode="adjustPan" >
81             <intent-filter>
82                 <action android:name="android.intent.action.VIEW" />
83
84                 <category android:name="android.intent.category.DEFAULT" />
85
86                 <data android:scheme="content" />
87                 <data android:mimeType="audio/*" />
88                 <data android:mimeType="application/ogg" />
89                 <data android:mimeType="application/x-ogg" />
90                 <data android:mimeType="application/itunes" />
91             </intent-filter>
92             <intent-filter>
93                 <action android:name="android.intent.action.VIEW" />
94
95                 <category android:name="android.intent.category.DEFAULT" />
96
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
106                 <category android:name="android.intent.category.DEFAULT" />
107                 <category android:name="android.intent.category.BROWSABLE" />
108
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" />
114             </intent-filter>
115             <intent-filter>
116                 <action android:name="android.intent.action.VIEW" />
117
118                 <category android:name="android.intent.category.DEFAULT" />
119
120                 <data android:mimeType="vnd.android.cursor.dir/playlist" />
121                 <data android:mimeType="vnd.android.cursor.dir/albums" />
122                 <data android:mimeType="vnd.android.cursor.dir/artists" />
123             </intent-filter>
124             <intent-filter>
125                 <action android:name="com.andrew.apollo.AUDIO_PLAYER" />
126
127                 <category android:name="android.intent.category.DEFAULT" />
128             </intent-filter>
129             <intent-filter>
130                 <action android:name="android.intent.action.PICK" />
131                 <category android:name="android.intent.category.DEFAULT" />
132                 <category android:name="android.intent.category.OPENABLE" />
133                 <data android:mimeType="vnd.android.cursor.dir/audio"/>
134             </intent-filter>
135         </activity>
136
137         <!-- Profile phone Activity -->
138         <activity
139             android:name=".ui.activities.ProfileActivity"
140             android:excludeFromRecents="true" />
141         <!-- Shortcut launcher Activity -->
142         <activity
143             android:name=".ui.activities.ShortcutActivity"
144             android:excludeFromRecents="true"
145             android:exported="true"
146             android:theme="@style/Theme.Transparent" >
147             <intent-filter>
148                 <action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
149
150                 <category android:name="android.intent.category.DEFAULT" />
151             </intent-filter>
152         </activity>
153         <!-- Search interface -->
154         <activity
155             android:name=".ui.activities.SearchActivity"
156             android:exported="true" >
157             <intent-filter>
158                 <action android:name="android.intent.action.SEARCH" />
159                 <action android:name="android.intent.action.MEDIA_SEARCH" />
160
161                 <category android:name="android.intent.category.DEFAULT" />
162             </intent-filter>
163
164             <meta-data
165                 android:name="android.app.searchable"
166                 android:resource="@xml/searchable" />
167         </activity>
168         <!-- Used to set options -->
169         <activity
170             android:name=".ui.activities.SettingsActivity"
171             android:label="@string/menu_settings"
172             android:theme="@style/Apollo.Theme.Dark" />
173         <!-- Themes Activity -->
174         <activity
175             android:name=".ui.activities.ThemesActivity"
176             android:excludeFromRecents="true" />
177         <!-- 4x1 App Widget -->
178         <receiver
179             android:name="com.andrew.apollo.appwidgets.AppWidgetSmall"
180             android:exported="false"
181             android:label="@string/app_widget_small" >
182             <intent-filter>
183                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
184             </intent-filter>
185
186             <meta-data
187                 android:name="android.appwidget.provider"
188                 android:resource="@xml/app_widget_small" />
189         </receiver>
190         <!-- 4x2  App Widget -->
191         <receiver
192             android:name="com.andrew.apollo.appwidgets.AppWidgetLarge"
193             android:exported="false"
194             android:label="@string/app_widget_large" >
195             <intent-filter>
196                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
197             </intent-filter>
198
199             <meta-data
200                 android:name="android.appwidget.provider"
201                 android:resource="@xml/app_widget_large" />
202         </receiver>
203         <!-- 4x2 alternate App Widget -->
204         <receiver
205             android:name="com.andrew.apollo.appwidgets.AppWidgetLargeAlternate"
206             android:exported="false"
207             android:label="@string/app_widget_large_alt" >
208             <intent-filter>
209                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
210             </intent-filter>
211
212             <meta-data
213                 android:name="android.appwidget.provider"
214                 android:resource="@xml/app_widget_large_alternate" />
215         </receiver>
216         <!-- Resizable recently listened App Widget -->
217         <receiver
218             android:name="com.andrew.apollo.appwidgets.RecentWidgetProvider"
219             android:exported="false"
220             android:label="@string/app_widget_recent" >
221             <intent-filter>
222                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
223             </intent-filter>
224             <!-- This specifies the widget provider info -->
225             <meta-data
226                 android:name="android.appwidget.provider"
227                 android:resource="@xml/app_widget_recents" />
228         </receiver>
229         <!-- The service serving the RemoteViews to the recently listened App Widget -->
230         <service
231             android:name="com.andrew.apollo.appwidgets.RecentWidgetService"
232             android:permission="android.permission.BIND_REMOTEVIEWS" />
233         <!-- Media button receiver -->
234         <receiver android:name=".MediaButtonIntentReceiver" >
235             <intent-filter>
236                 <action android:name="android.intent.action.MEDIA_BUTTON" />
237                 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
238             </intent-filter>
239         </receiver>
240         <!-- Music service -->
241         <service
242             android:name=".MusicPlaybackService"
243             android:label="@string/app_name"
244             android:process=":main" />
245     </application>
246
247 </manifest>