For this I have overridden the onTap(int) method of ItemizedOverlay. Below is code for that.
Using java Syntax Highlighting
- protected boolean onTap(final int index) {
- prepareIntentToDisplayDrivingDirections(index);
- startActivity(intent);
- return super.onTap(index);
- }
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.


