DEV Community

Discussion on: OSM Android Offline Map Library

Collapse
 
asafeca profile image
A. Safeca • Edited

Hi?
Thanks for sharing, but the map does not load. And the Logcat says permission is denied. I am sending the image with the error reproduced.
And I believe that the problem lives here:
File f = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/osmdroid/");
"osmdroid/" directory does not even exist!

Collapse
 
asynctaskcoffee profile image
EGEMEN

I think you have to give hardware read/write runtime permission. Because library creates this folder.