OSDN Git Service

Remove lyrics support.
[android-x86/packages-apps-Eleven.git] / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3   Copyright (C) 2012 Andrew Neal
4  
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
8  
9        http://www.apache.org/licenses/LICENSE-2.0
10  
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.
16 -->
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" >
21
22     <!-- ICS to Jelly Bean -->
23     <uses-sdk
24         android:minSdkVersion="14"
25         android:targetSdkVersion="17" />
26
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" />
45
46     <application
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" >
55
56         <!-- Searchable -->
57         <meta-data
58             android:name="android.app.default_searchable"
59             android:value=".ui.activities.SearchActivity" />
60         <!-- Main activity -->
61         <activity
62             android:name=".ui.activities.HomeActivity"
63             android:windowSoftInputMode="adjustPan" >
64             <intent-filter>
65                 <action android:name="android.intent.action.MAIN" />
66                 <action android:name="android.intent.action.MUSIC_PLAYER" />
67
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" />
71             </intent-filter>
72         </activity>
73         <!-- Now playing -->
74         <activity
75             android:name=".ui.activities.AudioPlayerActivity"
76             android:clearTaskOnLaunch="true"
77             android:exported="true"
78             android:launchMode="singleTask"
79             android:windowSoftInputMode="adjustPan" >
80             <intent-filter>
81                 <action android:name="android.intent.action.VIEW" />
82
83                 <category android:name="android.intent.category.DEFAULT" />
84
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" />
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="com.andrew.apollo.AUDIO_PLAYER" />
117
118                 <category android:name="android.intent.category.DEFAULT" />
119             </intent-filter>
120         </activity>
121
122         <!-- Profile phone Activity -->
123         <activity
124             android:name=".ui.activities.ProfileActivity"
125             android:excludeFromRecents="true" />
126         <!-- Shortcut launcher Activity -->
127         <activity
128             android:name=".ui.activities.ShortcutActivity"
129             android:excludeFromRecents="true"
130             android:exported="true"
131             android:theme="@style/Theme.Transparent" >
132             <intent-filter>
133                 <action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
134
135                 <category android:name="android.intent.category.DEFAULT" />
136             </intent-filter>
137         </activity>
138         <!-- Search interface -->
139         <activity
140             android:name=".ui.activities.SearchActivity"
141             android:exported="true" >
142             <intent-filter>
143                 <action android:name="android.intent.action.SEARCH" />
144                 <action android:name="android.intent.action.MEDIA_SEARCH" />
145
146                 <category android:name="android.intent.category.DEFAULT" />
147             </intent-filter>
148
149             <meta-data
150                 android:name="android.app.searchable"
151                 android:resource="@xml/searchable" />
152         </activity>
153         <!-- Used to set options -->
154         <activity
155             android:name=".ui.activities.SettingsActivity"
156             android:label="@string/menu_settings"
157             android:theme="@style/Apollo.Theme.Dark" />
158         <!-- Themes Activity -->
159         <activity
160             android:name=".ui.activities.ThemesActivity"
161             android:excludeFromRecents="true" />
162         <!-- 4x1 App Widget -->
163         <receiver
164             android:name="com.andrew.apollo.appwidgets.AppWidgetSmall"
165             android:exported="false"
166             android:label="@string/app_widget_small" >
167             <intent-filter>
168                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
169             </intent-filter>
170
171             <meta-data
172                 android:name="android.appwidget.provider"
173                 android:resource="@xml/app_widget_small" />
174         </receiver>
175         <!-- 4x2  App Widget -->
176         <receiver
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" >
181             <intent-filter>
182                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
183             </intent-filter>
184
185             <meta-data
186                 android:name="android.appwidget.provider"
187                 android:resource="@xml/app_widget_large" />
188         </receiver>
189         <!-- 4x2 alternate App Widget -->
190         <receiver
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" >
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_alternate" />
202         </receiver>
203         <!-- Resizable recently listened App Widget -->
204         <receiver
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" >
209             <intent-filter>
210                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
211             </intent-filter>
212             <!-- This specifies the widget provider info -->
213             <meta-data
214                 android:name="android.appwidget.provider"
215                 android:resource="@xml/app_widget_recents" />
216         </receiver>
217         <!-- The service serving the RemoteViews to the recently listened App Widget -->
218         <service
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" >
224             <intent-filter>
225                 <action android:name="android.intent.action.MEDIA_BUTTON" />
226                 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
227             </intent-filter>
228         </receiver>
229         <!-- Music service -->
230         <service
231             android:name=".MusicPlaybackService"
232             android:label="@string/app_name"
233             android:process=":main" />
234     </application>
235
236 </manifest>