This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

OSM in android fragment became blank tiles

0

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 alt text

Scenario 2: I swipe left and go to History Scenario 3: I swipe right to go back to Home and this is what happened alt text

asked 25 May '22, 04:16

Drewbox's gravatar image

Drewbox
11111
accept rate: 0%

edited 31 May '22, 07:59

scai's gravatar image

scai ♦
33.3k21309459

2

This sounds more like an app development question than an OSM one. You might get better results in an Android development forum.

(25 May '22, 16:46) alester

I edited the question and added a screenshots

(26 May '22, 11:06) Drewbox

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

(30 May '22, 11:23) scai ♦

I'm using org.osmdroid:osmdroid-android:6.1.13 (OSMdroid)

(31 May '22, 04:18) Drewbox