OSDN Git Service

Merge "'Remove from playlist' added to the context menu" into cm-10.2
[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
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:mimeType="audio/*" />
86                 <data android:mimeType="application/ogg" />
87                 <data android:mimeType="application/x-ogg" />
88                 <data android:mimeType="application/itunes" />
89             </intent-filter>
90             <intent-filter>
91                 <action android:name="android.intent.action.VIEW" />
92
93                 <category android:name="android.intent.category.DEFAULT" />
94
95                 <data android:scheme="file" />
96                 <data android:mimeType="audio/*" />
97                 <data android:mimeType="application/ogg" />
98                 <data android:mimeType="application/x-ogg" />
99                 <data android:mimeType="application/itunes" />
100             </intent-filter>
101             <intent-filter>
102                 <action android:name="android.intent.action.VIEW" />
103
104                 <category android:name="android.intent.category.DEFAULT" />
105                 <category android:name="android.intent.category.BROWSABLE" />
106
107                 <data android:scheme="http" />
108                 <data android:mimeType="audio/*" />
109                 <data android:mimeType="application/ogg" />
110                 <data android:mimeType="application/x-ogg" />
111                 <data android:mimeType="application/itunes" />
112             </intent-filter>
113             <intent-filter>
114                 <action android:name="android.intent.action.VIEW" />
115
116                 <category android:name="android.intent.category.DEFAULT" />
117
118                 <data android:mimeType="vnd.android.cursor.dir/playlist" />
119             </intent-filter>
120             <intent-filter>
121                 <action android:name="com.andrew.apollo.AUDIO_PLAYER" />
122
123                 <category android:name="android.intent.category.DEFAULT" />
124             </intent-filter>
125         </activity>
126
127         <!-- Profile phone Activity -->
128         <activity
129             android:name=".ui.activities.ProfileActivity"
130             android:excludeFromRecents="true" />
131         <!-- Shortcut launcher Activity -->
132         <activity
133             android:name=".ui.activities.ShortcutActivity"
134             android:excludeFromRecents="true"
135             android:exported="true"
136             android:theme="@style/Theme.Transparent" >
137             <intent-filter>
138                 <action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
139
140                 <category android:name="android.intent.category.DEFAULT" />
141             </intent-filter>
142         </activity>
143         <!-- Search interface -->
144         <activity
145             android:name=".ui.activities.SearchActivity"
146             android:exported="true" >
147             <intent-filter>
148                 <action android:name="android.intent.action.SEARCH" />
149                 <action android:name="android.intent.action.MEDIA_SEARCH" />
150
151                 <category android:name="android.intent.category.DEFAULT" />
152             </intent-filter>
153
154             <meta-data
155                 android:name="android.app.searchable"
156                 android:resource="@xml/searchable" />
157         </activity>
158         <!-- Used to set options -->
159         <activity
160             android:name=".ui.activities.SettingsActivity"
161             android:label="@string/menu_settings"
162             android:theme="@style/Apollo.Theme.Dark" />
163         <!-- Themes Activity -->
164         <activity
165             android:name=".ui.activities.ThemesActivity"
166             android:excludeFromRecents="true" />
167         <!-- 4x1 App Widget -->
168         <receiver
169             android:name="com.andrew.apollo.appwidgets.AppWidgetSmall"
170             android:exported="false"
171             android:label="@string/app_widget_small" >
172             <intent-filter>
173                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
174             </intent-filter>
175
176             <meta-data
177                 android:name="android.appwidget.provider"
178                 android:resource="@xml/app_widget_small" />
179         </receiver>
180         <!-- 4x2  App Widget -->
181         <receiver
182             android:name="com.andrew.apollo.appwidgets.AppWidgetLarge"
183             android:exported="false"
184             android:label="@string/app_widget_large" >
185             <intent-filter>
186                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
187             </intent-filter>
188
189             <meta-data
190                 android:name="android.appwidget.provider"
191                 android:resource="@xml/app_widget_large" />
192         </receiver>
193         <!-- 4x2 alternate App Widget -->
194         <receiver
195             android:name="com.andrew.apollo.appwidgets.AppWidgetLargeAlternate"
196             android:exported="false"
197             android:label="@string/app_widget_large_alt" >
198             <intent-filter>
199                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
200             </intent-filter>
201
202             <meta-data
203                 android:name="android.appwidget.provider"
204                 android:resource="@xml/app_widget_large_alternate" />
205         </receiver>
206         <!-- Resizable recently listened App Widget -->
207         <receiver
208             android:name="com.andrew.apollo.appwidgets.RecentWidgetProvider"
209             android:exported="false"
210             android:label="@string/app_widget_recent" >
211             <intent-filter>
212                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
213             </intent-filter>
214             <!-- This specifies the widget provider info -->
215             <meta-data
216                 android:name="android.appwidget.provider"
217                 android:resource="@xml/app_widget_recents" />
218         </receiver>
219         <!-- The service serving the RemoteViews to the recently listened App Widget -->
220         <service
221             android:name="com.andrew.apollo.appwidgets.RecentWidgetService"
222             android:permission="android.permission.BIND_REMOTEVIEWS" />
223         <!-- Media button receiver -->
224         <receiver android:name=".MediaButtonIntentReceiver" >
225             <intent-filter>
226                 <action android:name="android.intent.action.MEDIA_BUTTON" />
227                 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
228             </intent-filter>
229         </receiver>
230         <!-- Music service -->
231         <service
232             android:name=".MusicPlaybackService"
233             android:label="@string/app_name"
234             android:process=":main" />
235     </application>
236
237 </manifest>