how to find which marker is selected in the list of markers in google map from onMarkerClicked(Marker marker) callback.
The recommended way to do this is to have a Hash with marker ID and your custom data. The Marker object might change if the activity is killed and restored but the ID will remain the same. You map would look like:
HashMap<String, MyObject> markersAndObjects = new HashMap<String, MyObject>();
Marker objects have a getId() method to get the ID. Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With