I want to show new activity when user touch the info(snippet?) above marker. As I'm new comer for android, I studied alone and completed by custom marker and snippet. But I can not give a click event to snippet. I already checked for How to get click event of the marker text this post but it is hard to perform on my code. At the start "InfoWindowAdapter" it couldn't read it(can not resolve...)
I found second answer Android Google Maps V2 - OnInfoWindowClick on several markers it looks find except one part.
allMarkerMap.put(mk1, Don.class);
mMap.setOnInfoWindowClickListener(this);
Above post, it said that it works but at my one it has red line on "this" next to mMap.setOnInfoWindowClickListener
. I put it on several position such as under onCreate
, onMapready
but it didn't work.