Android Tutorial OSMDroid - MapView for B4A tutorial

BW17

Member
Licensed User
Longtime User
Hello,

Sorry for my very bad english..

I know this is a very old thread, but i have a big problem.

I have been using OsmDroid 3.0.8 for many years and it works great in my application (thanks Martin).
I only use it offline with ZIP tiles.

Today I need to publish an update of my application on the PlayStore, but Google now forces to use API 30, but as API 30 no longer allows to place files outside the app path, OsmDroid no longer works.

Is there a way to change OSMDROID's default offline cache path ?

I tried unpacking the jar file and decompiling the class files to modify org\osmdroid\tileprovider\constants\OpenStreetMapTileProviderConstants.java (i think the line to modify is "public static final File OSMDROID_PATH = new File(Environment.getExternalStorageDirectory(), "osmdroid");", but I can't recompile the project with Eclipse (which I don't know well).

Can anyone help me?

Thank you in advance.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…