Share Coding

Tutorials, Problems, Stuffs …

SimpleOnGestureListener.onSingleTapConfirmed no respond

This is because your device keep return false on the

SimpleOnggListener.onDown() event.
This problem will not happen if I change device no matter it is virtual device of real device.

You should override it under your GestureDetector.SimpleOnGestureListener.
PS: Do not write super.onDown and it 

class ZoomGesture extends GestureDetector.SimpleOnGestureListener { //Signal finger

    public boolean onDown(MotionEvent e) {
        return true; // This word help you to reactive it

    public boolean onSingleTapConfirmed(MotionEvent e) {
        // Add on Touch event to place point
        int x = (int) e.getX();
        int y = (int) e.getY();


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: