If I'm understanding you correctly, you *named* your handler method "setOnDoubleTapListener()". That's not right. That's the callback setup method you call, passing it the object that you want called back to in the event of a double tap. The callback method is then some other name. In your case, I found the following:
http://developer.android.com/reference/android/view/GestureDetector.OnDoubleTapListener.html which suggests you need to write a method with the following signature: boolean onDoubleTap(MotionEvent e); On Jun 12, 9:08 am, Georgy <[email protected]> wrote: > Hello, > > I was able to listen to user touches or taps on the screen in a > MapView and trigger a dialog giving the user some feedback. I need to > implement the same concept but with double tap to trigger another > dialog. > > I looked around and couldn't find much... I wrote this function: > > public void setOnDoubleTapListener(MotionEvent event, MapView > mapView) > { > if (event.getAction() == MotionEvent.ACTION_UP) { > > Dialog dialog1 = new > Dialog(HelloMapView2.this); > dialog1.setTitle("Current Location"); > dialog1.setContentView(R.layout.custom); > TextView current_locode = (TextView) > dialog1.findViewById > (R.id.text); > current_locode.setText("Current LoCode: > ...."); > dialog1.show(); > > } > > but the compiler never goes through it when I double tap. > > any ideas? > thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

