This repository was archived by the owner on Mar 15, 2025. It is now read-only.
Enable opening files via file browser, and via file picker within the app #459
+172
−122
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a content filter to allow the app to show in the "open with" dialog in Android, allowing a user to select a GWC file from their downloads folder and select to open it in WhereIGo. A "select file" is also added to the start dialog allowing the user to browse the system for a file to open.
On selecting a file to open, the file is copied to the WhereIGo folder and opened. If a file with the same name already exists there, the copy is skipped and the existing cartridge is opened.
There is a slight limitation in the file picking functionality, because GWC doesn't have a defined mimetype and just shows as application/octet-stream, it is not possible to scope the intent-filter and file picker to just gwc files, therefore WhereIGo will appear as a handler for any file type.
I've changed a few English strings so might need some pointers on how this project handles translation.
Tested on API 28 and 33