]> gitweb.fperrin.net Git - Dictionary.git/blob - AndroidManifest.xml
Allow multiple dictionaries in a .zip file.
[Dictionary.git] / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3     package="com.hughes.android.dictionary"
4     android:installLocation="auto"
5     android:versionCode="102"
6     android:versionName="5.4.7" >
7
8     <uses-sdk
9         android:minSdkVersion="10"
10         android:targetSdkVersion="26" />
11
12     <uses-feature
13         android:name="android.hardware.touchscreen"
14         android:required="false" />
15     <uses-feature
16         android:name="android.software.leanback"
17         android:required="false" />
18
19     <uses-permission android:name="android.permission.INTERNET" />
20     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
21     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
22
23     <application
24         android:allowBackup="true"
25         android:resizeableActivity="true"
26         android:icon="@drawable/icon"
27         android:banner="@drawable/banner_tv"
28         android:label="@string/app_name"
29         android:supportsRtl="true"
30         android:theme="@style/AppBaseThemeDark" >
31         <meta-data
32             android:name="com.google.android.backup.api_key"
33             android:value="AEdPqrEAAAAIUa0cU0ZHbBpYXJqm0vVUP5IAjr5D4iUeX7UwiQ" />
34
35         <activity
36             android:name=".DictionaryManagerActivity"
37             android:label="@string/app_name" >
38             <intent-filter>
39                 <action android:name="android.intent.action.MAIN" />
40
41                 <category android:name="android.intent.category.LAUNCHER" />
42             </intent-filter>
43             <intent-filter>
44                 <action android:name="android.intent.action.MAIN" />
45                 <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
46             </intent-filter>
47             <!-- Direct installation of dictionaries -->
48             <!-- When opening from downloads, no proper file name is sent -->
49             <intent-filter>
50                 <action android:name="android.intent.action.VIEW" />
51                 <category android:name="android.intent.category.DEFAULT" />
52                 <category android:name="android.intent.category.BROWSABLE" />
53                 <data android:scheme="content"
54                       android:host="*"
55                       android:pathPattern=".*"
56                       android:mimeType="application/zip" />
57             </intent-filter>
58             <intent-filter>
59                 <action android:name="android.intent.action.VIEW" />
60                 <category android:name="android.intent.category.DEFAULT" />
61                 <category android:name="android.intent.category.BROWSABLE" />
62                 <data android:scheme="file"
63                       android:host="*"
64                       android:pathPattern=".*"
65                       android:mimeType="application/zip" />
66             <!-- Handling cases with no mimeType (maybe not necessary?)
67                  works for files not in downloads -->
68             </intent-filter>
69             <intent-filter>
70                 <action android:name="android.intent.action.VIEW" />
71                 <category android:name="android.intent.category.DEFAULT" />
72                 <category android:name="android.intent.category.BROWSABLE" />
73                 <data android:scheme="content"
74                       android:host="*"
75                       android:pathPattern=".*\\.quickdic\\.v006\\.zip" />
76             </intent-filter>
77             <intent-filter>
78                 <action android:name="android.intent.action.VIEW" />
79                 <category android:name="android.intent.category.DEFAULT" />
80                 <category android:name="android.intent.category.BROWSABLE" />
81                 <data android:scheme="file"
82                       android:host="*"
83                       android:pathPattern=".*\\.quickdic\\.v006\\.zip" />
84             </intent-filter>
85             <intent-filter>
86                 <action android:name="android.intent.action.VIEW" />
87                 <category android:name="android.intent.category.DEFAULT" />
88                 <category android:name="android.intent.category.BROWSABLE" />
89                 <data android:scheme="content"
90                       android:host="*"
91                       android:pathPattern=".*\\.quickdic\\.v007\\.zip" />
92             </intent-filter>
93             <intent-filter>
94                 <action android:name="android.intent.action.VIEW" />
95                 <category android:name="android.intent.category.DEFAULT" />
96                 <category android:name="android.intent.category.BROWSABLE" />
97                 <data android:scheme="file"
98                       android:host="*"
99                       android:pathPattern=".*\\.quickdic\\.v007\\.zip" />
100             </intent-filter>
101
102             <!--
103                 <meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/>
104                                                 <intent-filter>
105                 <action android:name="android.intent.action.SEARCH" />
106                 </intent-filter>
107             -->
108         </activity>
109         <activity
110             android:name=".DictionaryActivity"
111             android:label="@string/app_name"
112             android:windowSoftInputMode="adjustResize"
113             android:parentActivityName=".DictionaryActivity" >
114
115             <!-- Parent activity meta-data to support API level 7+ -->
116             <meta-data
117                 android:name="android.support.PARENT_ACTIVITY"
118                 android:value=".DictionaryActivity" />
119
120             <!--
121            @author Dominik Köppl
122                         Added two different intents to catch simple and advanced queries from other external applications.
123             -->
124             <intent-filter>
125                 <action android:name="android.intent.action.PROCESS_TEXT" />
126                 <category android:name="android.intent.category.DEFAULT" />
127                 <data android:mimeType="text/plain" />
128             </intent-filter>
129             <intent-filter>
130                 <action android:name="android.intent.action.SEND" />
131                 <category android:name="android.intent.category.DEFAULT" />
132                 <data android:mimeType="text/plain" />
133             </intent-filter>
134             <intent-filter>
135                 <action android:name="android.intent.action.SEARCH" />
136
137                 <category android:name="android.intent.category.DEFAULT" />
138             </intent-filter>
139             <intent-filter>
140                 <action android:name="com.hughes.action.ACTION_SEARCH_DICT" />
141
142                 <category android:name="android.intent.category.DEFAULT" />
143             </intent-filter>
144             <!-- Allow direct opening of dictionary files -->
145             <intent-filter>
146                 <action android:name="android.intent.action.VIEW" />
147                 <category android:name="android.intent.category.DEFAULT" />
148                 <data android:scheme="content"
149                       android:host="*"
150                       android:mimeType="application/octet-stream"
151                       android:pathPattern=".*\\.quickdic" />
152             </intent-filter>
153             <intent-filter>
154                 <action android:name="android.intent.action.VIEW" />
155                 <category android:name="android.intent.category.DEFAULT" />
156                 <data android:scheme="file"
157                       android:host="*"
158                       android:mimeType="application/octet-stream"
159                       android:pathPattern=".*\\.quickdic" />
160             </intent-filter>
161             <intent-filter>
162                 <action android:name="android.intent.action.VIEW" />
163                 <category android:name="android.intent.category.DEFAULT" />
164                 <data android:scheme="content"
165                       android:host="*"
166                       android:pathPattern=".*\\.quickdic" />
167             </intent-filter>
168             <intent-filter>
169                 <action android:name="android.intent.action.VIEW" />
170                 <category android:name="android.intent.category.DEFAULT" />
171                 <data android:scheme="file"
172                       android:host="*"
173                       android:pathPattern=".*\\.quickdic" />
174             </intent-filter>
175         </activity>
176         <activity
177             android:name=".AboutActivity"
178             android:parentActivityName=".DictionaryActivity" >
179
180             <!-- Parent activity meta-data to support API level 7+ -->
181             <meta-data
182                 android:name="android.support.PARENT_ACTIVITY"
183                 android:value=".DictionaryActivity" />
184         </activity>
185         <activity
186             android:name=".HtmlDisplayActivity"
187             android:parentActivityName=".DictionaryActivity" >
188
189             <!-- Parent activity meta-data to support API level 7+ -->
190             <meta-data
191                 android:name="android.support.PARENT_ACTIVITY"
192                 android:value=".DictionaryActivity" />
193         </activity>
194         <activity
195             android:name=".PreferenceActivity"
196             android:parentActivityName=".DictionaryActivity" >
197
198             <!-- Parent activity meta-data to support API level 7+ -->
199             <meta-data
200                 android:name="android.support.PARENT_ACTIVITY"
201                 android:value=".DictionaryActivity" />
202         </activity>
203     </application>
204
205 </manifest>