Open bagage opened 7 years ago
I can reproduce that Mapper is not offered for opening files on Android 6.0. But it works as expected on Android 4.4.2. We implemented what was neccessary two years ago, but now it seems to be broken for newer version of Android.
As it's working on OsmAnd, it might be worth looking at their AndroidManifest.xml for instance.
The examples you gave show URLs (dat=...
) using the content scheme. At the moment, Mapper supports the file scheme only, and that's why it registers for this scheme only.
In order to support the content scheme (which plays a major role on Android), we need to:
ContentProvider
via openInputStream
(probably implementing a QIODevice
which in turn calls the Java APIs). Cf. http://www.qtcentre.org/threads/61954-Android-select-image-using-Gallery.
Steps to reproduce
.omap
fileActual behaviour
The file is getting opened in OsmAnd.
Expected behaviour
Android should ask if I'd like to open it with Mapper or OsmAnd. I'm getting that in the logs:
When opening via Cyanogen file explorer:
When opening directly within K9 mail client:
Configuration
Mapper Version: 0.6.6 Operating System: Android 7.0