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
  1.  
  2. protected boolean onTap(final int index) {
  3.  
  4.         prepareIntentToDisplayDrivingDirections(index);
  5.  
  6.         startActivity(intent);
  7.  
  8.         return super.onTap(index);
  9.  
  10. }
  11.  
  12.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4



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.
ashish_v_p
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Jan 04, 2010 10:51 am
Location: Nashik

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 3 guests