OSDN Git Service

Eleven: Fix action bar spacing
[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="17"
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:theme="@style/Theme.ActionBarIcon"
154             android:screenOrientation="portrait">
155             <intent-filter>
156                 <action android:name="android.intent.action.SEARCH" />
157                 <action android:name="android.intent.action.MEDIA_SEARCH" />
158
159                 <category android:name="android.intent.category.DEFAULT" />
160             </intent-filter>
161
162             <meta-data
163                 android:name="android.app.searchable"
164                 android:resource="@xml/searchable" />
165         </activity>
166         <!-- Used to set options -->
167         <activity
168             android:name=".ui.activities.SettingsActivity"
169             android:label="@string/menu_settings"
170             android:screenOrientation="portrait"/>
171         <!-- 4x1 App Widget -->
172         <receiver
173             android:name="com.cyngn.eleven.appwidgets.AppWidgetSmall"
174             android:exported="false"
175             android:label="@string/app_widget_small" >
176             <intent-filter>
177                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
178             </intent-filter>
179
180             <meta-data
181                 android:name="android.appwidget.provider"
182                 android:resource="@xml/app_widget_small" />
183         </receiver>
184         <!-- 4x2  App Widget -->
185         <receiver
186             android:name="com.cyngn.eleven.appwidgets.AppWidgetLarge"
187             android:exported="false"
188             android:label="@string/app_widget_large" >
189             <intent-filter>
190                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
191             </intent-filter>
192
193             <meta-data
194                 android:name="android.appwidget.provider"
195                 android:resource="@xml/app_widget_large" />
196         </receiver>
197         <!-- 4x2 alternate App Widget -->
198         <receiver
199             android:name="com.cyngn.eleven.appwidgets.AppWidgetLargeAlternate"
200             android:exported="false"
201             android:label="@string/app_widget_large_alt" >
202             <intent-filter>
203                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
204             </intent-filter>
205
206             <meta-data
207                 android:name="android.appwidget.provider"
208                 android:resource="@xml/app_widget_large_alternate" />
209         </receiver>
210         <!-- Media button receiver -->
211         <receiver android:name=".MediaButtonIntentReceiver" >
212             <intent-filter>
213                 <action android:name="android.intent.action.MEDIA_BUTTON" />
214                 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
215             </intent-filter>
216         </receiver>
217         <!-- Music service -->
218         <service
219             android:name=".MusicPlaybackService"
220             android:label="@string/app_name"
221             android:process=":main" />
222     </application>
223
224 </manifest>