Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - How to display list when user taps on the overlay item?

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.011 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: Exabot [Bot] and 3 guests