Hide infowindow android map api v2

TheRedFox picture TheRedFox · Dec 31, 2012 · Viewed 11.8k times · Source

I was trying to close the default infowindow in the android map. I used .hideInfoWindow() but nothing appends. Thanks.

Answer

Satheesh picture Satheesh · Mar 16, 2016

Change the return statement

 @Override
public boolean onMarkerClick(Marker marker) {
return false;
}

      (to)

 @Override
public boolean onMarkerClick(Marker marker) {
return true;
}