The comments are explaining what the ACTION_DOWN for example means.
public boolean onTouchEvent(MotionEvent e, MapView mv){
int i = e.getAction();
switch(i){
case MotionEvent.ACTION_DOWN:
//When your finger touches the screen
break;
case MotionEvent.ACTION_UP:
//When your finger stop touching the screen
break;
case MotionEvent.ACTION_MOVE:
//When your finger moves around the screen
break;
}
return false;
}
My blogg has some Android tutorials for the people who are intrested: TheCompBoy


Sign In
Create Account


Back to top









