I had also face that same type problem....I solve with this way...
If You using android mutitouch controller http://code.google.com/p/android-multitouch-controller/ for multitouch
and GestureDetector http://www.41post.com/4194/programming/android-detecting-double-tap-events for double tap
than
update this steps in MultiTouchController.java
--> import
import android.view.GestureDetector.OnDoubleTapListener;
import android.view.GestureDetector.OnGestureListener;
--> implement
public class MultiTouchController<T> implements OnGestureListener{
-->
public MultiTouchController(MultiTouchObjectCanvas<T> objectCanvas2, boolean handleSingleTouchEvents) {
//....
gd = new GestureDetector(this);
// set the on Double tap listener
gd.setOnDoubleTapListener(new OnDoubleTapListener() {
@Override
public boolean onDoubleTap(MotionEvent e) {
// set text color to green
Log.d("CLICK", "double taped");
return false;
}
@Override
public boolean onDoubleTapEvent(MotionEvent e) {
// if the second tap hadn't been released and it's being moved
if (e.getAction() == MotionEvent.ACTION_MOVE) {
Log.d("CLICK", "double tap event ACTION_MOVE");
} else if (e.getAction() == MotionEvent.ACTION_UP)// user
// released
// the
// screen
{
Log.d("CLICK", "double tap event ACTION_UP");
}
return false;
}
@Override
public boolean onSingleTapConfirmed(MotionEvent e) {
// set text color to red
Log.d("CLICK", "single taped");
return true;
}
});
--> set touch event to gd at onTouch(MotionEvent event)
public boolean onTouchEvent(MotionEvent event) {
gd.onTouchEvent(event);
try {
//.....
Don't change in any other files.
Now test...Hope you solved problem...must reply...