How to display list when user taps on the overlay item?

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

How to display list when user taps on the overlay item?

Postby ashish_v_p » Mon Jan 04, 2010 11:15 am

How can I display some activity displaying a list when user clicks on one of several markers on the google maps? I want to display turn by turn directions on the map.

For this I have overridden the onTap(int) method of ItemizedOverlay. Below is code for that.

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  2. protected boolean onTap(final int index) {
  4.         prepareIntentToDisplayDrivingDirections(index);
  6.         startActivity(intent);
  8.         return super.onTap(index);
  10. }
Parsed in 0.011 seconds, using GeSHi

Using this code, the activity displaying list is shown 3 times though users taps only once. I don't know what's going wrong. I want to display the activity only once.
Once Poster
Once Poster
Posts: 1
Joined: Mon Jan 04, 2010 10:51 am
Location: Nashik


Return to Map Problems

Who is online

Users browsing this forum: No registered users and 4 guests