OSDN Git Service

Eleven: update Profile Activity to have sliding panel
[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             android:theme="@style/Eleven.Theme.ActionBar.Overlay">
141         </activity>
142         <!-- Shortcut launcher Activity -->
143         <activity
144             android:name=".ui.activities.ShortcutActivity"
145             android:excludeFromRecents="true"
146             android:exported="true"
147             android:theme="@style/Theme.Transparent"
148             android:screenOrientation="portrait">
149             <intent-filter>
150                 <action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
151
152                 <category android:name="android.intent.category.DEFAULT" />
153             </intent-filter>
154         </activity>
155         <!-- Search interface -->
156         <activity
157             android:name=".ui.activities.SearchActivity"
158             android:exported="true"
159             android:screenOrientation="portrait">
160             <intent-filter>
161                 <action android:name="android.intent.action.SEARCH" />
162                 <action android:name="android.intent.action.MEDIA_SEARCH" />
163
164                 <category android:name="android.intent.category.DEFAULT" />
165             </intent-filter>
166
167             <meta-data
168                 android:name="android.app.searchable"
169                 android:resource="@xml/searchable" />
170         </activity>
171         <!-- Used to set options -->
172         <activity
173             android:name=".ui.activities.SettingsActivity"
174             android:label="@string/menu_settings"
175             android:screenOrientation="portrait"/>
176         <!-- 4x1 App Widget -->
177         <receiver
178             android:name="com.cyngn.eleven.appwidgets.AppWidgetSmall"
179             android:exported="false"
180             android:label="@string/app_widget_small" >
181             <intent-filter>
182                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
183             </intent-filter>
184
185             <meta-data
186                 android:name="android.appwidget.provider"
187                 android:resource="@xml/app_widget_small" />
188         </receiver>
189         <!-- 4x2  App Widget -->
190         <receiver
191             android:name="com.cyngn.eleven.appwidgets.AppWidgetLarge"
192             android:exported="false"
193             android:label="@string/app_widget_large" >
194             <intent-filter>
195                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
196             </intent-filter>
197
198             <meta-data
199                 android:name="android.appwidget.provider"
200                 android:resource="@xml/app_widget_large" />
201         </receiver>
202         <!-- 4x2 alternate App Widget -->
203         <receiver
204             android:name="com.cyngn.eleven.appwidgets.AppWidgetLargeAlternate"
205             android:exported="false"
206             android:label="@string/app_widget_large_alt" >
207             <intent-filter>
208                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
209             </intent-filter>
210
211             <meta-data
212                 android:name="android.appwidget.provider"
213                 android:resource="@xml/app_widget_large_alternate" />
214         </receiver>
215         <!-- Resizable recently listened App Widget -->
216         <receiver
217             android:name="com.cyngn.eleven.appwidgets.RecentWidgetProvider"
218             android:exported="false"
219             android:label="@string/app_widget_recent" >
220             <intent-filter>
221                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
222             </intent-filter>
223             <!-- This specifies the widget provider info -->
224             <meta-data
225                 android:name="android.appwidget.provider"
226                 android:resource="@xml/app_widget_recents" />
227         </receiver>
228         <!-- The service serving the RemoteViews to the recently listened App Widget -->
229         <service
230             android:name="com.cyngn.eleven.appwidgets.RecentWidgetService"
231             android:permission="android.permission.BIND_REMOTEVIEWS" />
232         <!-- Media button receiver -->
233         <receiver android:name=".MediaButtonIntentReceiver" >
234             <intent-filter>
235                 <action android:name="android.intent.action.MEDIA_BUTTON" />
236                 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
237             </intent-filter>
238         </receiver>
239         <!-- Music service -->
240         <service
241             android:name=".MusicPlaybackService"
242             android:label="@string/app_name"
243             android:process=":main" />
244     </application>
245
246 </manifest>