title: How to know which Marker was clicked on Google Maps v2 for Android?
body: <p>I am making an application with a Google Maps on it, for Android. I have plenty of Markers on my screen and I am preparing customizable balloon for each marker when they are clicked. This means, I have information which is different according to the marker which was clicked.</p>
  
  <p>I set up the contents of the View of the marker with setInfoWindowAdapter and then I override the method getInfoContents.</p>
  
  <p>The problem is: This method is the general implementation of the contents of the Info Window, but each marker shall show its own information. So, as far as I understand, I have to somehow detect on getInfoContents(Marker marker) which of the markers have been clicked, in order to load from my data structures the necessary info to present on the info window. The question is: <strong>How do I identify what entity the clicked Marker 'marker' represents?</strong> I mean, having just the object Marker on getInfoContents which was triggered to show the info window, how can I detect which is the proper information to display? I though about comparing the string Title by using marker.getTitle(), but this obliges me to display a Title on the info window, which I do not want. There's also a marker.getId(), but such ID is generated by the API and I can't control it</p>
  
  <p>Any ideas?</p>