OSDN Git Service

Eleven: Move most activities to fragments to improve perf
[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="20" />
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="singleTop"
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         <!-- Shortcut launcher Activity -->
136         <activity
137             android:name=".ui.activities.ShortcutActivity"
138             android:excludeFromRecents="true"
139             android:exported="true"
140             android:theme="@style/Theme.Transparent"
141             android:screenOrientation="portrait">
142             <intent-filter>
143                 <action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
144
145                 <category android:name="android.intent.category.DEFAULT" />
146             </intent-filter>
147         </activity>
148         <!-- Search interface -->
149         <activity
150             android:name=".ui.activities.SearchActivity"
151             android:windowSoftInputMode="adjustResize"
152             android:exported="true"
153             android:screenOrientation="portrait">
154             <intent-filter>
155                 <action android:name="android.intent.action.SEARCH" />
156                 <action android:name="android.intent.action.MEDIA_SEARCH" />
157
158                 <category android:name="android.intent.category.DEFAULT" />
159             </intent-filter>
160
161             <meta-data
162                 android:name="android.app.searchable"
163                 android:resource="@xml/searchable" />
164         </activity>
165         <!-- Used to set options -->
166         <activity
167             android:name=".ui.activities.SettingsActivity"
168             android:label="@string/menu_settings"
169             android:screenOrientation="portrait"/>
170         <!-- 4x1 App Widget -->
171         <receiver
172             android:name="com.cyngn.eleven.appwidgets.AppWidgetSmall"
173             android:exported="false"
174             android:label="@string/app_widget_small" >
175             <intent-filter>
176                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
177             </intent-filter>
178
179             <meta-data
180                 android:name="android.appwidget.provider"
181                 android:resource="@xml/app_widget_small" />
182         </receiver>
183         <!-- 4x2  App Widget -->
184         <receiver
185             android:name="com.cyngn.eleven.appwidgets.AppWidgetLarge"
186             android:exported="false"
187             android:label="@string/app_widget_large" >
188             <intent-filter>
189                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
190             </intent-filter>
191
192             <meta-data
193                 android:name="android.appwidget.provider"
194                 android:resource="@xml/app_widget_large" />
195         </receiver>
196         <!-- 4x2 alternate App Widget -->
197         <receiver
198             android:name="com.cyngn.eleven.appwidgets.AppWidgetLargeAlternate"
199             android:exported="false"
200             android:label="@string/app_widget_large_alt" >
201             <intent-filter>
202                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
203             </intent-filter>
204
205             <meta-data
206                 android:name="android.appwidget.provider"
207                 android:resource="@xml/app_widget_large_alternate" />
208         </receiver>
209         <!-- Media button receiver -->
210         <receiver android:name=".MediaButtonIntentReceiver" >
211             <intent-filter>
212                 <action android:name="android.intent.action.MEDIA_BUTTON" />
213                 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
214             </intent-filter>
215         </receiver>
216         <!-- Music service -->
217         <service
218             android:name=".MusicPlaybackService"
219             android:label="@string/app_name"
220             android:process=":main" />
221     </application>
222
223 </manifest>