I have some code to check onTouchEvent on an ImageView
public boolean onTouchEvent(MotionEvent event) {
if(event.getAction() == MotionEvent.ACTION_DOWN) {
Log.d("M", "down");
}
if(event.getAction() == MotionEvent.ACTION_MOVE) {
Log.d("M", "moved");
}
return super.onTouchEvent(event);
}
But I am unable to test this on emulator. Can someone help me out