Hi, I'm using android studio for my android app with OSM just to see the map with a marker of my current location. My problem is I have 2 fragment (f1 and f2), I put the OSM(org.osmdroid:osmdroid-android:6.1.13) in f1 and it works perfectly, I can see the map and the marker of my current location, but when I go to f2 and go back again in f1 the map became full of blank tiles and a marker of my current location. How can I resolve this ? Scenario 1: it's working fine Scenario 2: I swipe left and go to History Scenario 3: I swipe right to go back to Home and this is what happened |
This sounds more like an app development question than an OSM one. You might get better results in an Android development forum.
I edited the question and added a screenshots
You still haven't mentioned the name of the library/framework you are using. Is it osmdroid by chance? Also, as already hinted, you might have more luck asking this question at https://stackoverflow.com/
Update: I see you already did: https://stackoverflow.com/questions/72390137/osm-in-android-fragment-become-blank-tiles
I'm using org.osmdroid:osmdroid-android:6.1.13 (OSMdroid)