]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - AndroidManifest.xml
Allow to escape only unicode chars
[Dictionary.git] / AndroidManifest.xml
index c3d8d9f034998e72f4dbd1c84b6a8b8aa2e61f18..1291450b7634e43c184aefb48ecdeff6e8b73479 100644 (file)
@@ -2,12 +2,8 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.hughes.android.dictionary"
     android:installLocation="auto"
-    android:versionCode="90"
-    android:versionName="5.3.7" >
-
-    <uses-sdk
-        android:minSdkVersion="10"
-        android:targetSdkVersion="23" />
+    android:versionCode="112"
+    android:versionName="5.5.7" >
 
     <uses-feature
         android:name="android.hardware.touchscreen"
                 <action android:name="android.intent.action.MAIN" />
                 <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
             </intent-filter>
+            <!-- Direct installation of dictionaries -->
+            <!-- When opening from downloads, no proper file name is sent -->
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <category android:name="android.intent.category.BROWSABLE" />
+                <data android:scheme="content"
+                      android:host="*"
+                      android:pathPattern=".*"
+                      android:mimeType="application/zip" />
+            </intent-filter>
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <category android:name="android.intent.category.BROWSABLE" />
+                <data android:scheme="file"
+                      android:host="*"
+                      android:pathPattern=".*"
+                      android:mimeType="application/zip" />
+            <!-- Handling cases with no mimeType (maybe not necessary?)
+                 works for files not in downloads -->
+            </intent-filter>
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <category android:name="android.intent.category.BROWSABLE" />
+                <data android:scheme="content"
+                      android:host="*"
+                      android:pathPattern=".*\\.quickdic\\.v006\\.zip" />
+            </intent-filter>
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <category android:name="android.intent.category.BROWSABLE" />
+                <data android:scheme="file"
+                      android:host="*"
+                      android:pathPattern=".*\\.quickdic\\.v006\\.zip" />
+            </intent-filter>
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <category android:name="android.intent.category.BROWSABLE" />
+                <data android:scheme="content"
+                      android:host="*"
+                      android:pathPattern=".*\\.quickdic\\.v007\\.zip" />
+            </intent-filter>
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <category android:name="android.intent.category.BROWSABLE" />
+                <data android:scheme="file"
+                      android:host="*"
+                      android:pathPattern=".*\\.quickdic\\.v007\\.zip" />
+            </intent-filter>
 
             <!--
                <meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/>
 
                 <category android:name="android.intent.category.DEFAULT" />
             </intent-filter>
+            <!-- Allow direct opening of dictionary files -->
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <data android:scheme="content"
+                      android:host="*"
+                      android:mimeType="application/octet-stream"
+                      android:pathPattern=".*\\.quickdic" />
+            </intent-filter>
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <data android:scheme="file"
+                      android:host="*"
+                      android:mimeType="application/octet-stream"
+                      android:pathPattern=".*\\.quickdic" />
+            </intent-filter>
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <data android:scheme="content"
+                      android:host="*"
+                      android:pathPattern=".*\\.quickdic" />
+            </intent-filter>
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <data android:scheme="file"
+                      android:host="*"
+                      android:pathPattern=".*\\.quickdic" />
+            </intent-filter>
         </activity>
         <activity
             android:name=".AboutActivity"