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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---