Android Java Google Maps, you need to check that the map is fully loaded before executing the dialog… here is a solution to the problem.
Android Java Google Maps, you need to check that the map is fully loaded before executing the dialog
I’m trying to figure out if map, if any, is loaded before opening a dialog (with map fragment) on MainActivity
if(map.isLoaded()){
show dialog
}
If I just open a dialog normally after the map
loads, then it opens fine, but I’m switching the activity, I want the dialog to open immediately after the activity starts, but it seems that the dialog is jumping to load the map, and then during the loading process, the dialog disappears and the map appears. I’ve seen things about JavaScript and things about tilesLoaded(), but I haven’t seen anything like that either. Any suggestions?
Solution
GoogleMap.OnMapLoadedCallback What do you think??