summaryrefslogtreecommitdiff
path: root/android-app/app/src/main/AndroidManifest.xml
diff options
context:
space:
mode:
Diffstat (limited to 'android-app/app/src/main/AndroidManifest.xml')
-rw-r--r--android-app/app/src/main/AndroidManifest.xml18
1 files changed, 11 insertions, 7 deletions
diff --git a/android-app/app/src/main/AndroidManifest.xml b/android-app/app/src/main/AndroidManifest.xml
index 35f8dd3..196932d 100644
--- a/android-app/app/src/main/AndroidManifest.xml
+++ b/android-app/app/src/main/AndroidManifest.xml
@@ -34,26 +34,30 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
- <!-- application/gpx+xml: standard MIME type, recognised on Android 12+ -->
+ <!-- GPX as standard MIME type (used by apps that know the type) -->
<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:mimeType="application/gpx+xml" />
</intent-filter>
- <!-- application/gpx: older variant sent by some file managers and email clients -->
+ <!-- GPX older variant -->
<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:mimeType="application/gpx" />
</intent-filter>
- <!-- file:// URIs from legacy file managers; extension filtered in code -->
+ <!-- GPX as XML — Android's MimeTypeMap often maps .gpx to text/xml because
+ application/gpx+xml isn't in the base system database. Code checks the
+ display name before parsing. -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
- <data android:scheme="file" android:host="*" android:pathSuffix=".gpx"
- android:mimeType="*/*" />
+ <data android:mimeType="text/xml" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="application/xml" />
</intent-filter>
</activity>
</application>