Android Question Osmdroid map not showing after changing phone

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Just changed my phone from a Samsung S9 to a Samsung S10.
Application data is on a SD card and this card has moved from the old to the new phone.
Main data is in a SQLite file on the SD and this works all fine.
Map data is in the form of another SQLite file on the SD card: Galaxy S10\Card\osmdroid\Mapnik.mbtiles

tile source is set like this:

B4X:
Sub InitMapView
 
 Dim TileSourceFactory1 As OSMDroid_TileSourceFactory
 
 MapView1.Initialize("MapView1")
 strTileSource = "Mapnik"
 MapView1.SetTileSource(TileSourceFactory1.GetTileSource(strTileSource))

All working perfectly fine on the old S9.
Android version is the same, 9 in both phones.

There is no error, just no map showing.

Any idea where the problem could be?

RBS
 

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Updated the S10 now, so it has Android 10 and One UI version 2.0, but still the same problem and didn't think that would fix it.
I am not sure where exactly the map data comes from as renaming the file:
Galaxy S10\Card\osmdroid\Mapnik.mbtiles
on the SD card doesn't stop the map from showing on the S9.
I suppose the map data is cached, but still no idea why it doesn't work on the S10.
Problem is there is no error message, so no idea where to look for the problem.
Any hint very greatly appreciated.

RBS
 
Upvote 0

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Updated the S10 now, so it has Android 10 and One UI version 2.0, but still the same problem and didn't think that would fix it.
I am not sure where exactly the map data comes from as renaming the file:
Galaxy S10\Card\osmdroid\Mapnik.mbtiles
on the SD card doesn't stop the map from showing on the S9.
I suppose the map data is cached, but still no idea why it doesn't work on the S10.
Problem is there is no error message, so no idea where to look for the problem.
Any hint very greatly appreciated.

RBS

Solved this now.
Just needed to copy the file Mapnik.mbtiles to the folder internal storage/osmdroid/

RBS
 
Upvote 0
Top