In my app I have some objects that have their location displayed on the map using markers. The problem is that the only way I\'ve found to handle marker clicks is
Another option would be to create a Map whose keys is marker.getId() and the value is our object.
In this way, we wouldn't keep a reference to a Marker in memory, and wouldn't have to worry about garbage collected markers.
Here you can see more answers.