I have two activities in my Android project:
- Google Map Activity
- List Activity
I’m trying to pass an item’s location information to GMAP Activity and add it as an overlay to the map. I know i have to use putExtra and getExtra but I want to add that location to the Google Map and show it to user when user taps on a List Activity item. How can i do that?
You can use ListView’s setOnItemClickListener, and start an new GMAP in your implementation of this method.
Following is sample code: