OSDN Git Service

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