it could be that you are not registering the onTouchListener to the view in a constructor, im not really sure but here onTouchEvent() is a method you override like onDraw for a view, maybe that would suit you better
@Override
public boolean onTouchEvent (MotionEvent event){
return true;
}