OSDN Git Service

Improve preview activity behaviour.
[android-x86/packages-apps-Eleven.git] / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2012 Andrew Neal
3      Copyright (C) 2014 The CyanogenMod Project
4
5      Licensed under the Apache License, Version 2.0 (the "License");
6      you may not use this file except in compliance with the License.
7      You may obtain a copy of the License at
8
9           http://www.apache.org/licenses/LICENSE-2.0
10
11      Unless required by applicable law or agreed to in writing, software
12      distributed under the License is distributed on an "AS IS" BASIS,
13      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14      See the License for the specific language governing permissions and
15      limitations under the License.
16  -->
17 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
18     package="com.cyanogenmod.eleven"
19     android:versionCode="2"
20     android:versionName="2.0" >
21
22     <uses-sdk
23         android:minSdkVersion="21"
24         android:targetSdkVersion="21" />
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.REAL_GET_TASKS" />
44     <!-- Allows Eleven to read from External Storage -->
45     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
46
47     <!-- Audio Visualizer Permissions -->
48     <uses-permission android:name="android.permission.RECORD_AUDIO" />
49     <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
50
51     <!-- Accelerometer feature for shake to play -->
52     <uses-feature android:name="android.hardware.sensor.accelerometer" />
53
54     <application
55         android:name="com.cyanogenmod.eleven.ElevenApplication"
56         android:allowBackup="true"
57         android:allowTaskReparenting="true"
58         android:hardwareAccelerated="@bool/config_hardwareAccelerated"
59         android:icon="@mipmap/ic_launcher_eleven"
60         android:label="@string/app_name"
61         android:largeHeap="@bool/config_largeHeap"
62         android:taskAffinity="com.cyanogenmod.eleven.task"
63         android:theme="@style/Eleven.Theme">
64
65         <!-- Searchable -->
66         <meta-data
67             android:name="android.app.default_searchable"
68             android:value=".ui.activities.SearchActivity" />
69         <!-- Main activity -->
70         <activity
71             android:name="com.cyanogenmod.eleven.ui.activities.HomeActivity"
72             android:windowSoftInputMode="adjustPan"
73             android:launchMode="singleTop"
74             android:exported="true"
75             android:theme="@style/Eleven.Theme.ActionBar.Overlay">
76             <intent-filter>
77                 <action android:name="android.intent.action.MAIN" />
78                 <action android:name="android.intent.action.MUSIC_PLAYER" />
79
80                 <category android:name="android.intent.category.LAUNCHER" />
81                 <category android:name="android.intent.category.APP_MUSIC" />
82                 <category android:name="android.intent.category.DEFAULT" />
83             </intent-filter>
84             <intent-filter>
85                 <action android:name="android.intent.action.VIEW" />
86
87                 <category android:name="android.intent.category.DEFAULT" />
88
89                 <data android:mimeType="vnd.android.cursor.dir/playlist" />
90                 <data android:mimeType="vnd.android.cursor.dir/albums" />
91                 <data android:mimeType="vnd.android.cursor.dir/artists" />
92             </intent-filter>
93             <intent-filter>
94                 <action android:name="com.cyanogenmod.eleven.AUDIO_PLAYER" />
95
96                 <category android:name="android.intent.category.DEFAULT" />
97             </intent-filter>
98         </activity>
99
100         <!-- Search interface -->
101         <activity
102             android:name="com.cyanogenmod.eleven.ui.activities.SearchActivity"
103             android:windowSoftInputMode="adjustResize"
104             android:exported="true"
105             android:theme="@style/Eleven.Theme">
106             <intent-filter>
107                 <action android:name="android.intent.action.SEARCH" />
108                 <action android:name="android.intent.action.MEDIA_SEARCH" />
109
110                 <category android:name="android.intent.category.DEFAULT" />
111             </intent-filter>
112
113             <meta-data
114                 android:name="android.app.searchable"
115                 android:resource="@xml/searchable" />
116         </activity>
117         <!-- Used to set options -->
118         <activity
119             android:name="com.cyanogenmod.eleven.ui.activities.SettingsActivity"
120             android:label="@string/menu_settings"/>
121         <!-- Audio Preview -->
122         <activity
123             android:name=".ui.activities.preview.AudioPreviewActivity"
124             android:launchMode="singleTask"
125             android:excludeFromRecents="true"
126             android:taskAffinity=""
127             android:theme="@style/Theme.AudioPreview">
128             <intent-filter>
129                 <action android:name="android.intent.action.VIEW" />
130
131                 <category android:name="android.intent.category.DEFAULT" />
132
133                 <data android:scheme="content" />
134                 <data android:mimeType="audio/*" />
135                 <data android:mimeType="application/ogg" />
136                 <data android:mimeType="application/x-ogg" />
137                 <data android:mimeType="application/itunes" />
138             </intent-filter>
139             <intent-filter>
140                 <action android:name="android.intent.action.VIEW" />
141
142                 <category android:name="android.intent.category.DEFAULT" />
143
144                 <data android:scheme="file" />
145                 <data android:mimeType="audio/*" />
146                 <data android:mimeType="application/ogg" />
147                 <data android:mimeType="application/x-ogg" />
148                 <data android:mimeType="application/itunes" />
149             </intent-filter>
150             <intent-filter>
151                 <action android:name="android.intent.action.VIEW" />
152
153                 <category android:name="android.intent.category.DEFAULT" />
154                 <category android:name="android.intent.category.BROWSABLE" />
155
156                 <data android:scheme="http" />
157                 <data android:mimeType="audio/*" />
158                 <data android:mimeType="application/ogg" />
159                 <data android:mimeType="application/x-ogg" />
160                 <data android:mimeType="application/itunes" />
161             </intent-filter>
162         </activity>
163         <!-- 4x1 App Widget -->
164         <receiver
165             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetSmall"
166             android:exported="false"
167             android:label="@string/app_widget_small" >
168             <intent-filter>
169                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
170             </intent-filter>
171
172             <meta-data
173                 android:name="android.appwidget.provider"
174                 android:resource="@xml/app_widget_small" />
175         </receiver>
176         <!-- 4x2  App Widget -->
177         <receiver
178             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetLarge"
179             android:exported="false"
180             android:label="@string/app_widget_large" >
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_large" />
188         </receiver>
189         <!-- 4x2 alternate App Widget -->
190         <receiver
191             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetLargeAlternate"
192             android:exported="false"
193             android:label="@string/app_widget_large_alt" >
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_alternate" />
201         </receiver>
202         <!-- Media button receiver -->
203         <receiver android:name="com.cyanogenmod.eleven.MediaButtonIntentReceiver" >
204             <intent-filter>
205                 <action android:name="android.intent.action.MEDIA_BUTTON" />
206                 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
207             </intent-filter>
208         </receiver>
209         <!-- Used to recalculate sorting of songs based on the user's locale -->
210         <receiver android:name=".locale.LocaleChangeReceiver">
211             <intent-filter>
212                 <action android:name="android.intent.action.LOCALE_CHANGED"/>
213             </intent-filter>
214         </receiver>
215         <!-- Music service -->
216         <service
217             android:name="com.cyanogenmod.eleven.MusicPlaybackService"
218             android:label="@string/app_name"
219             android:process=":main" />
220     </application>
221
222 </manifest>