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.xml20
1 files changed, 11 insertions, 9 deletions
diff --git a/android-app/app/src/main/AndroidManifest.xml b/android-app/app/src/main/AndroidManifest.xml
index 5090190..23817bb 100644
--- a/android-app/app/src/main/AndroidManifest.xml
+++ b/android-app/app/src/main/AndroidManifest.xml
@@ -56,20 +56,17 @@
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/xml" />
</intent-filter>
- <!-- Google Files on Android 16 sends application/octet-stream for .gpx because
- MimeTypeMap has no entry for that extension. The ExternalStorageProvider URI
- encodes the full file path, so pathSuffix=".gpx" keeps this targeted.
- Code double-checks via OpenableColumns.DISPLAY_NAME before parsing. -->
+ <!-- Many file managers send application/octet-stream with no path hints.
+ pathSuffix cannot match content URIs (opaque paths); code checks
+ OpenableColumns.DISPLAY_NAME instead. -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
- <data android:scheme="content" android:mimeType="application/octet-stream"
- android:pathSuffix=".gpx" />
+ <data android:mimeType="application/octet-stream" />
</intent-filter>
- <!-- Share-sheet filters (ACTION_SEND): file URI is in EXTRA_STREAM, not
- intent data, so pathSuffix can't help — these cover apps that type .gpx
- correctly. Code checks display name for the XML variants. -->
+ <!-- Share-sheet filters (ACTION_SEND): file URI is in EXTRA_STREAM.
+ Code checks display name for XML and octet-stream variants. -->
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
@@ -90,6 +87,11 @@
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/xml" />
</intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.SEND" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="application/octet-stream" />
+ </intent-filter>
</activity>
</application>
</manifest>