NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×181
×76
×47
×42
×5

question asked: 25 May '22, 04:16

question was seen: 1,306 times

last updated: 31 May '22, 07:59

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum