MKergall/osmbonuspack

map not loading on android 11 devices

amlan007 opened this issue · 1 comments

i have added the below code to oncreate()

IConfigurationProvider osmConf = Configuration.getInstance();
File basePath = new File(getCacheDir().getAbsolutePath(), "osmdroid");
osmConf.setOsmdroidBasePath(basePath);
File tileCache = new File(osmConf.getOsmdroidBasePath().getAbsolutePath(), "tile");
osmConf.setOsmdroidTileCache(tileCache);
Configuration.getInstance().setUserAgentValue(userAgent);

and build.gradle config is as below

minSdkVersion 16
targetSdkVersion 28

also in AndroidManifest.xml

android:requestLegacyExternalStorage="true" and

still map is not loading please help us