Skip to content

Commit

Permalink
Fixed: Not able to open a ZIM file from Samsung's file explorer.
Browse files Browse the repository at this point in the history
* Created a custom intent filter for Samsung's "My Files" app to handle all MIME types, allowing ZIM files to be opened directly from this file manager.
  • Loading branch information
MohitMaliDeveloper committed Oct 30, 2024
1 parent eaa28d6 commit 2d1d287
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@
<data android:mimeType="application/octet-stream" />

</intent-filter>
<intent-filter>
<!-- Intent filter for Samsung's "My Files" file manager.
This is necessary because it returns an empty mimeType for ZIM files,
preventing our application from appearing in the suggestion list. -->
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<!-- This will match any URI that starts with "content://0@media/external/file/" -->
<data android:scheme="content" />
<data android:host="media" />
<data android:pathPrefix="/external/file/" />
<data android:mimeType="*/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />

Expand Down

0 comments on commit 2d1d287

Please sign in to comment.