I use goole maps in one fragment of my android app. In most cases (around 95%) there is no problem, the mad is loading like expected. But sometimes google maps just doesn't load correctly, it shows a grey field. I don't know what the problem is, the internet connection is okay. But I have to handle this cases, to reload the map again or give a specific information to the user. How can I do this?
I found out, that there is GoogleMap.OnMapLoadedCallback. Surely I could query after a short time after loading the fragment whether the Callback was triggered. But is there a more direct way, some kind of failure managment from google maps, that I can use to get the information directly that the map could not be loaded?
Source: View source