OSDN Git Service

Eleven: lots of ui tweaks (fonts, padding, grid layout) and cancel tasks smarter
[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.cyngn.eleven"
18     android:versionCode="2"
19     android:versionName="1.1" >
20
21     <!-- ICS to Jelly Bean -->
22     <uses-sdk
23         android:minSdkVersion="16"
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=".ElevenApplication"
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.cyngn.eleven.task"
56         android:theme="@style/Eleven.Theme">
57
58         <!-- Searchable -->
59         <meta-data
60             android:name="android.app.default_searchable"
61             android:value=".ui.activities.SearchActivity" />
62         <!-- Main activity -->
63         <activity
64             android:name=".ui.activities.HomeActivity"
65             android:windowSoftInputMode="adjustPan"
66             android:launchMode="singleTask"
67             android:exported="true"
68             android:screenOrientation="portrait"
69             android:theme="@style/Eleven.Theme.ActionBar.Overlay">
70             <intent-filter>
71                 <action android:name="android.intent.action.MAIN" />
72                 <action android:name="android.intent.action.MUSIC_PLAYER" />
73
74                 <category android:name="android.intent.category.LAUNCHER" />
75                 <category android:name="android.intent.category.APP_MUSIC" />
76                 <category android:name="android.intent.category.DEFAULT" />
77             </intent-filter>
78
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                 <data android:mimeType="vnd.android.cursor.dir/albums" />
120                 <data android:mimeType="vnd.android.cursor.dir/artists" />
121             </intent-filter>
122             <intent-filter>
123                 <action android:name="com.cyngn.eleven.AUDIO_PLAYER" />
124
125                 <category android:name="android.intent.category.DEFAULT" />
126             </intent-filter>
127             <intent-filter>
128                 <action android:name="android.intent.action.PICK" />
129                 <category android:name="android.intent.category.DEFAULT" />
130                 <category android:name="android.intent.category.OPENABLE" />
131                 <data android:mimeType="vnd.android.cursor.dir/audio"/>
132             </intent-filter>
133         </activity>
134
135         <!-- Profile phone Activity -->
136         <activity
137             android:name=".ui.activities.ProfileActivity"
138             android:excludeFromRecents="true"
139             android:screenOrientation="portrait"/>
140         <!-- Shortcut launcher Activity -->
141         <activity
142             android:name=".ui.activities.ShortcutActivity"
143             android:excludeFromRecents="true"
144             android:exported="true"
145             android:theme="@style/Theme.Transparent"
146             android:screenOrientation="portrait">
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             android:screenOrientation="portrait">
158             <intent-filter>
159                 <action android:name="android.intent.action.SEARCH" />
160                 <action android:name="android.intent.action.MEDIA_SEARCH" />
161
162                 <category android:name="android.intent.category.DEFAULT" />
163             </intent-filter>
164
165             <meta-data
166                 android:name="android.app.searchable"
167                 android:resource="@xml/searchable" />
168         </activity>
169         <!-- Used to set options -->
170         <activity
171             android:name=".ui.activities.SettingsActivity"
172             android:label="@string/menu_settings"
173             android:screenOrientation="portrait"/>
174         <!-- 4x1 App Widget -->
175         <receiver
176             android:name="com.cyngn.eleven.appwidgets.AppWidgetSmall"
177             android:exported="false"
178             android:label="@string/app_widget_small" >
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_small" />
186         </receiver>
187         <!-- 4x2  App Widget -->
188         <receiver
189             android:name="com.cyngn.eleven.appwidgets.AppWidgetLarge"
190             android:exported="false"
191             android:label="@string/app_widget_large" >
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" />
199         </receiver>
200         <!-- 4x2 alternate App Widget -->
201         <receiver
202             android:name="com.cyngn.eleven.appwidgets.AppWidgetLargeAlternate"
203             android:exported="false"
204             android:label="@string/app_widget_large_alt" >
205             <intent-filter>
206                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
207             </intent-filter>
208
209             <meta-data
210                 android:name="android.appwidget.provider"
211                 android:resource="@xml/app_widget_large_alternate" />
212         </receiver>
213         <!-- Resizable recently listened App Widget -->
214         <receiver
215             android:name="com.cyngn.eleven.appwidgets.RecentWidgetProvider"
216             android:exported="false"
217             android:label="@string/app_widget_recent" >
218             <intent-filter>
219                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
220             </intent-filter>
221             <!-- This specifies the widget provider info -->
222             <meta-data
223                 android:name="android.appwidget.provider"
224                 android:resource="@xml/app_widget_recents" />
225         </receiver>
226         <!-- The service serving the RemoteViews to the recently listened App Widget -->
227         <service
228             android:name="com.cyngn.eleven.appwidgets.RecentWidgetService"
229             android:permission="android.permission.BIND_REMOTEVIEWS" />
230         <!-- Media button receiver -->
231         <receiver android:name=".MediaButtonIntentReceiver" >
232             <intent-filter>
233                 <action android:name="android.intent.action.MEDIA_BUTTON" />
234                 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
235             </intent-filter>
236         </receiver>
237         <!-- Music service -->
238         <service
239             android:name=".MusicPlaybackService"
240             android:label="@string/app_name"
241             android:process=":main" />
242     </application>
243
244 </manifest>