I’m trying to capture the TouchRelease event in Android. I have seen that event.getAction() returns the action type. But inside onTouchEvent it always gives the action ACTION_DOWN.
Do you know how to capture the touch release event.
public boolean onTouchEvent(MotionEvent event) {
Log.d(TAG,""+event.getAction());
return super.onTouchEvent(event);
}
You can use
ACTION_UP: http://developer.android.com/reference/android/view/MotionEvent.html#ACTION_UP