Thank you! I hadn`t used methods like this before so rather than just ask for the answer, this is what I learned:
B4X:
Dim obj1 As Reflector
obj1.Target = Gmap.GetUiSettings
obj1.RunPublicmethod("setMapToolbarEnabled", Array As Object(False), Array As String("java.lang.boolean"))
Rather than add the JavaObject lib for just this, I used Reflector because I was already using it for something else.
This piece of code is working but is it the optimum way to do it?
It's worth mentioning that the MapToolbar appears only when:
Your map contains Markers.
A Marker is clicked.
An InfoWindow is then displayed.
If you handle Marker clicks yourself rather than letting the GoogleMap handle Marker clicks then you'll see the MapToolbar only if your Marker click handler Sub returns False.
It's worth mentioning that the MapToolbar appears only when:
Your map contains Markers.
A Marker is clicked.
An InfoWindow is then displayed.
If you handle Marker clicks yourself rather than letting the GoogleMap handle Marker clicks then you'll see the MapToolbar only if your Marker click handler Sub returns False.