OSDN Git Service

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