Well i have a map and i need to show the Location Button so i try this way:
mMap.setMyLocationEnabled(true);
And it works without any trouble, but in the ButtonListener i call a method to put a Marker on the actual location like this:
mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {
@Override
public boolean onMyLocationButtonClick() {
setMarker();
return true;
}
});
I set the return true to disable the excecution of the super method but it still shows me the marker and the native location:
How can i only show the marker without hiding the Location Button?, i try this but it doesn't work.
mMap.setMyLocationEnabled(false);
mMap.getUiSettings().setMyLocationButtonEnabled(true);
Thank you very much!