OSDN Git Service

Eleven: Add two sliding panels to the player
[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="14"
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
57         <!-- Searchable -->
58         <meta-data
59             android:name="android.app.default_searchable"
60             android:value=".ui.activities.SearchActivity" />
61         <!-- Main activity -->
62         <activity
63             android:name=".ui.activities.HomeActivity"
64             android:windowSoftInputMode="adjustPan"
65             android:launchMode="singleTask"
66             android:exported="true"
67             android:theme="@style/Eleven.Theme.ActionBar.Overlay">
68             <intent-filter>
69                 <action android:name="android.intent.action.MAIN" />
70                 <action android:name="android.intent.action.MUSIC_PLAYER" />
71
72                 <category android:name="android.intent.category.LAUNCHER" />
73                 <category android:name="android.intent.category.APP_MUSIC" />
74                 <category android:name="android.intent.category.DEFAULT" />
75             </intent-filter>
76
77             <intent-filter>
78                 <action android:name="android.intent.action.VIEW" />
79
80                 <category android:name="android.intent.category.DEFAULT" />
81
82                 <data android:scheme="content" />
83                 <data android:mimeType="audio/*" />
84                 <data android:mimeType="application/ogg" />
85                 <data android:mimeType="application/x-ogg" />
86                 <data android:mimeType="application/itunes" />
87             </intent-filter>
88             <intent-filter>
89                 <action android:name="android.intent.action.VIEW" />
90
91                 <category android:name="android.intent.category.DEFAULT" />
92
93                 <data android:scheme="file" />
94                 <data android:mimeType="audio/*" />
95                 <data android:mimeType="application/ogg" />
96                 <data android:mimeType="application/x-ogg" />
97                 <data android:mimeType="application/itunes" />
98             </intent-filter>
99             <intent-filter>
100                 <action android:name="android.intent.action.VIEW" />
101
102                 <category android:name="android.intent.category.DEFAULT" />
103                 <category android:name="android.intent.category.BROWSABLE" />
104
105                 <data android:scheme="http" />
106                 <data android:mimeType="audio/*" />
107                 <data android:mimeType="application/ogg" />
108                 <data android:mimeType="application/x-ogg" />
109                 <data android:mimeType="application/itunes" />
110             </intent-filter>
111             <intent-filter>
112                 <action android:name="android.intent.action.VIEW" />
113
114                 <category android:name="android.intent.category.DEFAULT" />
115
116                 <data android:mimeType="vnd.android.cursor.dir/playlist" />
117                 <data android:mimeType="vnd.android.cursor.dir/albums" />
118                 <data android:mimeType="vnd.android.cursor.dir/artists" />
119             </intent-filter>
120             <intent-filter>
121                 <action android:name="com.cyngn.eleven.AUDIO_PLAYER" />
122
123                 <category android:name="android.intent.category.DEFAULT" />
124             </intent-filter>
125             <intent-filter>
126                 <action android:name="android.intent.action.PICK" />
127                 <category android:name="android.intent.category.DEFAULT" />
128                 <category android:name="android.intent.category.OPENABLE" />
129                 <data android:mimeType="vnd.android.cursor.dir/audio"/>
130             </intent-filter>
131         </activity>
132
133         <!-- Profile phone Activity -->
134         <activity
135             android:name=".ui.activities.ProfileActivity"
136             android:excludeFromRecents="true" />
137         <!-- Shortcut launcher Activity -->
138         <activity
139             android:name=".ui.activities.ShortcutActivity"
140             android:excludeFromRecents="true"
141             android:exported="true"
142             android:theme="@style/Theme.Transparent" >
143             <intent-filter>
144                 <action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
145
146                 <category android:name="android.intent.category.DEFAULT" />
147             </intent-filter>
148         </activity>
149         <!-- Search interface -->
150         <activity
151             android:name=".ui.activities.SearchActivity"
152             android:exported="true" >
153             <intent-filter>
154                 <action android:name="android.intent.action.SEARCH" />
155                 <action android:name="android.intent.action.MEDIA_SEARCH" />
156
157                 <category android:name="android.intent.category.DEFAULT" />
158             </intent-filter>
159
160             <meta-data
161                 android:name="android.app.searchable"
162                 android:resource="@xml/searchable" />
163         </activity>
164         <!-- Used to set options -->
165         <activity
166             android:name=".ui.activities.SettingsActivity"
167             android:label="@string/menu_settings"
168             android:theme="@style/Eleven.Theme" />
169         <!-- Themes Activity -->
170         <activity
171             android:name=".ui.activities.ThemesActivity"
172             android:excludeFromRecents="true" />
173         <!-- 4x1 App Widget -->
174         <receiver
175             android:name="com.cyngn.eleven.appwidgets.AppWidgetSmall"
176             android:exported="false"
177             android:label="@string/app_widget_small" >
178             <intent-filter>
179                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
180             </intent-filter>
181
182             <meta-data
183                 android:name="android.appwidget.provider"
184                 android:resource="@xml/app_widget_small" />
185         </receiver>
186         <!-- 4x2  App Widget -->
187         <receiver
188             android:name="com.cyngn.eleven.appwidgets.AppWidgetLarge"
189             android:exported="false"
190             android:label="@string/app_widget_large" >
191             <intent-filter>
192                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
193             </intent-filter>
194
195             <meta-data
196                 android:name="android.appwidget.provider"
197                 android:resource="@xml/app_widget_large" />
198         </receiver>
199         <!-- 4x2 alternate App Widget -->
200         <receiver
201             android:name="com.cyngn.eleven.appwidgets.AppWidgetLargeAlternate"
202             android:exported="false"
203             android:label="@string/app_widget_large_alt" >
204             <intent-filter>
205                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
206             </intent-filter>
207
208             <meta-data
209                 android:name="android.appwidget.provider"
210                 android:resource="@xml/app_widget_large_alternate" />
211         </receiver>
212         <!-- Resizable recently listened App Widget -->
213         <receiver
214             android:name="com.cyngn.eleven.appwidgets.RecentWidgetProvider"
215             android:exported="false"
216             android:label="@string/app_widget_recent" >
217             <intent-filter>
218                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
219             </intent-filter>
220             <!-- This specifies the widget provider info -->
221             <meta-data
222                 android:name="android.appwidget.provider"
223                 android:resource="@xml/app_widget_recents" />
224         </receiver>
225         <!-- The service serving the RemoteViews to the recently listened App Widget -->
226         <service
227             android:name="com.cyngn.eleven.appwidgets.RecentWidgetService"
228             android:permission="android.permission.BIND_REMOTEVIEWS" />
229         <!-- Media button receiver -->
230         <receiver android:name=".MediaButtonIntentReceiver" >
231             <intent-filter>
232                 <action android:name="android.intent.action.MEDIA_BUTTON" />
233                 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
234             </intent-filter>
235         </receiver>
236         <!-- Music service -->
237         <service
238             android:name=".MusicPlaybackService"
239             android:label="@string/app_name"
240             android:process=":main" />
241     </application>
242
243 </manifest>