public boolean onTouchEvent(MotionEvent event) {
    int eventaction = event.getAction();
    switch (eventaction) {
        case MotionEvent.ACTION_DOWN: 
            // finger touches the screen
            break;
        case MotionEvent.ACTION_MOVE:
            // finger moves on the screen
            break;
        case MotionEvent.ACTION_UP:   
            // finger leaves the screen
            break;
    }
    // tell the system that we handled the event and no further processing is required
    return true; 
}
         
        
             
     
3 Comments
good.......and thanks
simply explained :)
is there require any permission too..?