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

    @Override
    public boolean onDown(MotionEvent e) {
        Log.d("ZoomGesture","onDown");
        return true; // This word help you to reactive it
    }

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

		
Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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: