Comments (7)
@Misalf-git OM explicitly does not have read/write external storage permission (which allows other apps to read sensitive user data on Android 10 and below). So OM can't open file://
urls.
from organicmaps.
Could it be about Total Commander sending either file://xxx.kml
or content://xxx.kml
?
If I got it right, more recent Android versions restrict static file://
urls across apps and Google wants apps to use content://
urls instead, even for unproblematic file locations.
from organicmaps.
The error clearly says that permission has been denied. This should be fixed on the Total Commander side.
More details can be found here:
https://developer.android.com/training/data-storage/shared/documents-files
from organicmaps.
On my system (Android 12) using TC to send a .gpx/.kmz file to OM via "open with..." and having the file://url
checkbox checked results in the same error.
But that's an optional feature (f.e. to workaround incompatibilities with older apps).
If I leave the file://url
checkbox unchecked it works.
However, for me TC's default action when tapping a .gpx/.kmz file opens OM which then correctly imports the file.
Intercepting this intent (using "App Manager") shows that TC sends a content://
url by default on my system.
I'm not fluent with Android intents, otherwise I'd have tryed to am start
a file://
url via terminal.
@biodranik , would OM with its permissions be even able to handle file://
urls?
"Permission denied" is a typical non-descriptive error message.
@snooppr , maybe your system's current app configuration for default file handling is wonky and always uses file://
url for .gpx/.kmz files by default? I'm just guessing - no idea if Android would do that.
Like maybe check Android's Settings
-> Apps
-> Organic Maps
-> Default open
-> and tap Delete current "Default open" settings
(don't delete App-Data, it would delete your bookmarks etc).
Note that Total Commander also has the ability to set default "open with..." apps for choosen file extensions in TC's settings. That would be an intentional user action, though, that you would probably remember having done.
from organicmaps.
No problem TC. OM does not require permissions to access storage, hence the error on Android 9 (checked on agalogs). If this is sec. OM policy, nothing can be done. I will close this.
from organicmaps.
Note that Total Commander also has the ability to set default "open with..." apps for choosen file extensions in TC's settings.
from organicmaps.
Note that Total Commander also has the ability to set default "open with..." apps for choosen file extensions in TC's settings.
I know about it and wrote about it in my first message. This workaround is not very convenient, and newbie TC users will think that everything is simply broken.
from organicmaps.
Related Issues (20)
- Ensure bookmarks are portable and interoperable with other software HOT 12
- Comments to chagesets contain the text network connection error or are empty HOT 1
- Disused tram naming
- Android - Failure to Register as Navigation Application HOT 2
- Support `self_service` tag HOT 2
- Bad ranking in search for an exactly matched village vs a partly matched town
- Other tracks displayed in default blue if KML contains more than one HOT 2
- Android Github releases of Organic Maps should also have debug symbols
- Generate `taginfo.json` for the TagInfo project HOT 1
- Routing on the major road network without downloading detailed intermediate areas HOT 4
- [android] Import of GPX, KML, KMZ fails when spaces and special symbols are present in a file name
- Incorporate ESA WorldCover 2021 landcover data
- Typing GropiusBau does not find Gropius-Bau HOT 1
- Confirm clearing search history HOT 4
- Open location in another map app HOT 1
- Append map links to recent search history
- Support `luggage_locker` amenities
- Highlight bookmarks in search results
- GPX tracks imported from Basecamp look wrong HOT 1
- Center the map on bookmarks / tracks opened from other apps HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from organicmaps.