Fixup the intent filters for the OpenRocketViewer activity. It's not pretty but...
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Wed, 4 Jan 2012 05:30:50 +0000 (05:30 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Wed, 4 Jan 2012 05:30:50 +0000 (05:30 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@270 180e2498-e6e9-4542-8430-84ac67f01cd8

android/AndroidManifest.xml

index 4ea14ab719670d54a509c8c6fbe2ed7fe8c56b85..511447eddb6910c967b2f4d912797d35becdaf6e 100644 (file)
         <activity\r
             android:label="@string/app_name"\r
             android:name=".android.rocket.OpenRocketViewer" >\r
+\r
+            <!--\r
+            I don't understand why I need to have two different intent filters.  Combining the <data> elements\r
+            into a single field did not result in a working application.\r
+            The first intent-filter (with mimeType wildcard) convinces the file browser to associate the correct launcher\r
+            icon.\r
+            the second intent-filter is actually invoked when a file is selected.\r\r
+            -->\r
             <intent-filter >\r
                 <action android:name="android.intent.action.VIEW" />\r
 \r
-                <category android:name="android.intent.category.BROWSABLE" />\r
                 <category android:name="android.intent.category.DEFAULT" />\r
 \r
                 <data\r
                     android:host="*"\r
+                    android:mimeType="*/*"\r
                     android:pathPattern=".*\\.ork"\r
-                    android:scheme="content" />\r
+                    android:scheme="file" />\r
+            </intent-filter>\r
+            <intent-filter >\r
+                <action android:name="android.intent.action.VIEW" />\r
+\r
+                <category android:name="android.intent.category.DEFAULT" />\r
+\r
                 <data\r
                     android:host="*"\r
                     android:pathPattern=".*\\.ork"\r