case MotionEvent.ACTION_MOVE :

   if(alarmbuttonx>canvasW-100){
        //여기에 작업을 할려합니다
   }


저안에

startActivity(new Intent(this, Main.class));
return true;

와같이 써서 다른 페이지로 넘어가거나

어플을 종료 시키고 싶어요~

어떻게 해야 할까요?;