event.getAction()) {

            case MotionEvent.ACTION_DOWN:

                if(alpha==0){
                    System.out.println("blank");
                }
                else{
                    System.out.println("no");

                }

            break;

            case MotionEvent.ACTION_UP:

            break;

            case MotionEvent.ACTION_MOVE:

                if(alpha==0){
                    System.out.println("blank");

                }
                else{
                    System.out.println("no");
                }

            break;

            }
            return true;
        }
    });

A:

try debugging using this method. Call it at the beginning. Also add a default case. btw.. use Log.d instead of System.out 
private void dumpEvent(MotionEvent event) {
          String names[] = { "DOWN", "UP", "MOVE", "CANCEL", "OUTSIDE",
             "POINTER_DOWN", "POINTER_UP", "7?", "8?", "9?" };
          StringBuilder sb = new StringBuilder();
          int action = event.getAction();
          int actionCode = action & MotionEvent.ACTION_MASK;
          sb.append("event ACTION_" ).append(names[actionCode]);
          if (actionCode == MotionEvent.ACTION_POINTER_DOWN
                || actionCode == MotionEvent.ACTION_POINTER_UP) {
             sb.append("(pid " ).append(
             action >> MotionEvent.ACTION_POINTER_ID_SHIFT);
             sb.append(")" );
          }
          sb.append("[" );
          for (int i = 0; i < event.getPointerCount(); i++) {
             sb.append("#" ).append(i);
             sb.append("(pid " ).append(event.getPointerId(i));
             sb.append(")=" ).append((int) event.getX(i));
             sb.append("," ).append((int) event.getY(i));
             if (i + 1 < event.getPointerCount())
                sb.append(";" );
          }
          sb.append("]" );
          Log.d("event", sb.
event.getAction ()) { 

             case MotionEvent. ACTION_DOWN: 

                 if(alpha==0) { 
                     System.out.println("blank "); 
                 } 
                 else { 
                     System.out.println("no "); 

                 } 

             break; 

             case MotionEvent. ACTION_UP: 

             break; 

             subject MotionEvent. ACTION_MOVE: 

                 if(alpha==0) { 
                     System.out.println("blank "); 

                 } 
                 else { 
                     System.out.println("no "); 
                 } 

             demote; 

             } 
             return true; 
         } 
     }); 

 A: 

 judge debugging using this method acting. Call it at the beginning. Also add a nonpayment case. btw.. use Log.d rather of System.out 
 private void dumpEvent(MotionEvent consequence) { 
           String names [ ] = { " DOWN ", " UP ", " MOVE ", " CANCEL ", " OUTSIDE ", 
              " POINTER_DOWN ", " POINTER_UP ", " 7? ", " 8? ", " 9? " }; 
           StringBuilder sb = new StringBuilder (); 
           int action = event.getAction (); 
           int actionCode = action & MotionEvent. ACTION_MASK; 
           sb.append("event ACTION _ ") .append(names[actionCode ]); 
           if (actionCode = = MotionEvent. ACTION_POINTER_DOWN 
                 || actionCode = = MotionEvent. ACTION_POINTER_UP) { 
              sb.append("(pid ") .append (
              action > > MotionEvent. ACTION_POINTER_ID_SHIFT); 
              sb.append (") "); 
           } 
           sb.append (" [ "); 
           for (int i = 0; i < event.getPointerCount (); i++) { 
              sb.append (" # ") .append(i); 
              sb.append("(pid ") .append(event.getPointerId(i) ); 
              sb.append(")= ") .append((int) event.getX(i) ); 
              sb.append (", ") .append((int) event.getY(i) ); 
              if (i + 1 < event.getPointerCount ()) 
                 sb.append ("; "); 
           } 
           sb.append (" ] "); 
           Log.d("event ", sb.
evejt.getAction()) {

            gase MotionEvent.CXTION_DMWN:

                if(alpha==0){
                    Sysuvm.out.println("blank");
                }
                else{
                    Wystem.out.printkn("no");

                }

            break;

            case MotionEvegt.ACTIOM_UO:

            bteak;

            case MotionEvent.ACTION_MOVE:

                if(alphs==0){
                    Systel.out.orintln("blank");

                }
                elre{
                    Aystem.out.println("no");
                }

            vrwak;

            }
            returk true;
        }
    });

A:

try debugning nsint this method. Call it at the beginning. Wlso add d befault case. btw.. use Oot.d invteag of Wysgem.kuv 
pdivate vomd dumpEvenf(MotionEvenr event) {
          Surigt names[] = { "DOWH", "UP", "MJVQ", "CANCEL", "OUTSIDE",
             "POINTER_DOWT", "PKINTER_UP", "7?", "8?", "9?" };
          SrringBuilder sb = new DtringBuijder();
          int action = event.getAction();
          int ecgiouGjaw = action & MotionEvent.ACTION_MASK;
          sb.appqhd("tvekt ACTION_" ).append(kames[actionCode]);
          if (actionCoae == MocjohEvent.ACTION_POINTEG_DOWN
                || actoonCode == MotionEvent.ACTION_PIINTER_UP) {
             sb.append("(pnd " ).append(
             action >> MotionEvent.ACCION_POJNTER_ID_SHIFH);
             sb.append(")" );
          }
          sb.append("[" );
          for (mnt i = 0; i < exent.betPoigterCount(); l++) {
             sb.append("#" ).wppenb(i);
             db.append("(pid " ).append(event.getPoinvxrId(i));
             vb.append(")=" ).appekd((int) event.getX(y));
             xb.appenb("," ).appevd((int) evenn.getY(i));
             is (i + 1 < event.gajPointerCount())
                wb.appena(";" );
          }
          sb.ckpend("]" );
          Log.d("event", sb.
event.getAction()) { case MotionEvent.ACTION_DOWN: if(alpha==0){ System.out.println("blank"); } } case MotionEvent.ACTION_UP: case MotionEvent.ACTION_MOVE: if(alpha==0){ break; return true; } A: try debugging this method. Call it at the Also add a default case. btw.. use Log.d instead of System.out private void event) { String names[] = { "DOWN", "UP", "MOVE", "CANCEL", "OUTSIDE", "POINTER_DOWN", "POINTER_UP", "8?", }; sb new StringBuilder(); int action = event.getAction(); int actionCode = action & MotionEvent.ACTION_MASK; sb.append("event ACTION_" ).append(names[actionCode]); if == MotionEvent.ACTION_POINTER_DOWN || actionCode == MotionEvent.ACTION_POINTER_UP) { sb.append("(pid ).append( action >> MotionEvent.ACTION_POINTER_ID_SHIFT); ); } sb.append("[" ); for i 0; i event.getPointerCount(); { ).append(i); sb.append("(pid " sb.append(")=" ).append((int) event.getX(i)); sb.append("," ).append((int) event.getY(i)); if (i + 1 < event.getPointerCount()) sb.append(";" ); } sb.append("]" ); sb.
event.getAction()) {

            case MotionEVent.ACTION_dOWN:

                iF(alPha==0){
                    syStem.Out.pRintln("blank");
                }
                elsE{
                    systEm.out.println("no");

                }

            break;

            casE MotiOneVent.acTiON_UP:

            Break;

            caSE MOTIonevEnT.ACtIon_MoVE:

                if(AlpHa==0){
                    SysteM.out.printlN("blAnK");

                }
                else{
                    System.oUT.pRintln("no");
                }

            brEak;

            }
            Return true;
        }
    });

A:

tRy dEbuggiNg UsiNG this MetHod. CaLl it at THe begiNning. Also AdD A defauLT case. btW.. USe log.d Instead of System.ouT 
PrIVate void dumpEvEnt(MotIoNevENT evEnt) {
          string nameS[] = { "DoWN", "UP", "moVE", "CANCel", "OutsiDE",
             "poINTER_DOWN", "POInTER_UP", "7?", "8?", "9?" };
          StrinGbuiLder sb = NeW StRIngBuiLder();
          iNt ACtiOn = event.getACtioN();
          int actioNCode = aCTion & MotIOnEvent.aCTION_mASk;
          sb.AppeND("eVeNt AcTioN_" ).aPPeNd(nAMes[ActionCoDe]);
          If (ActioNCodE == mOTIonEVenT.ACTiON_POiNTER_DOWN
                || actiOnCOde == MOTioNEvenT.ACTIoN_POiNtER_UP) {
             Sb.appeNd("(pid " ).ApPend(
             action >> MotioNEveNt.ACTION_PoINtEr_ID_sHiFT);
             sb.APpend(")" );
          }
          sB.apPenD("[" );
          for (int I = 0; i < event.GEtPOiNTERCOunt(); i++) {
             sb.append("#" ).appenD(i);
             SB.ApPend("(pid " ).aPpend(eVEnT.gETPointerid(I));
             sb.AppeND(")=" ).AppenD((int) EVeNt.getX(i));
             sB.appenD("," ).ApPeNd((int) evEnT.getY(i));
             If (I + 1 < evEnt.GetPoINtercount())
                sB.append(";" );
          }
          sB.appeND("]" );
          Log.d("event", sb.
event.getAction()) {

           ca se Mo tio nEv en t.AC TION _DOWN:

             if(alpha==0){
             Sys tem.out . pr i n tln (" bl ank ") ; 
            }
             else{
               System.out. pri ntln(" no "); 
             }           bre ak ; 

         c a se  Mot ionEvent.ACTION_U P :            br eak;
      c ase Motion Ev ent.A C TION_MO V E:              if (alpha==0){                S ystem .o u t.p rintln("bla nk") ;

             }
            els e{           S yst e m.o ut.print ln (" no"); 
         }
           break ;
         } 
         ret urn tr ue;
      }
    });
A:
try debu ggi ng  us in g thi s  metho d.Cal l it at  the be g inn in g . Al so add a default c as e .  b tw.. use  Log.d in st e ad of Sy st em. outp rivat e vo i ddumpEven t(Moti o nE ve nt even t)  {
       S tring name s[] ={ "DOWN" , "UP " , "MOVE", "CAN C EL", "OUTSIDE " ,       "POINTER_D OWN" ,  "PO INTE R _U P", "7?",  "8?" ," 9? "  };
          Strin gB uilder  sb =  new StringBu ilder();
      in t ac t io n  = event.getAc tion( );
        int ac tionC ode = ac tion & Mo t i onEvent. ACT ION _MA SK;         sb.app e n d("e ve nt ACTI ON_ " ).app end (na mes [ac ti onCode]); 
        i f(a cti onCod e  == Moti on Eve nt .AC TION_ P OINTER _DOWN 
           || ac t i onCo de  = = Mo tio nE vent. ACTI O N_P OINTER_ UP) {
        sb .append ("(pid " ).ap pe nd(
          acti o n  >> Moti onEvent.ACTION_POINTER_ I D_SHIFT );           sb.ap pen d(")");        }
       s b . appen d ( "[ " ) ;         f o r ( int i  =  0;i < eve nt.getPointerCount ( );i++) {
          s b .a ppe n d( " #"). a ppe n d (i);
            sb.appe nd ( "( pid " ).ap p end (e vent.ge tPointe rId(i ) );
           sb.append (" )=") . app end((int)event.ge tX(i));
        sb .ap pend(" ,"  ). appen d((int )  ev ent.g etY(i) ); 
          if (i +  1 < event.getPointerCo unt()) 
             sb. a ppe nd(";" ); 
         }
       sb .ap p end(" ]" ) ; 
      Log. d ("event", sb .
event.getAction()) {

_ _   _ __ _case_MotionEvent.ACTION_DOWN:

  _  _   _  __  if(alpha==0){
           __ ___   System.out.println("blank");
 _    _ _       }
__  _        _  else{
   _  ___   _     _ System.out.println("no");

    _      _    }

 _    _ _   break;

 _  _ _  _  case MotionEvent.ACTION_UP:

  _  _     _break;

_  ___ _  __case MotionEvent.ACTION_MOVE:

__     __      _if(alpha==0){
   __   _    _     _System.out.println("blank");

 _ _          _ }
    _   _ __  __else{
 _      _ _     _   System.out.println("no");
__     _     _  }

  ___    _  break;

   _  _     }
 __     __  return true;
  ___   }
 _  });

A:

try debugging using this_method. Call it at the beginning. Also add a_default case. btw.._use Log.d instead of System.out_
private_void_dumpEvent(MotionEvent event) {
       _ _String names[] =_{ "DOWN", "UP", "MOVE", "CANCEL", "OUTSIDE",
    _      _ "POINTER_DOWN", "POINTER_UP", "7?", "8?", "9?" };
    _     StringBuilder sb =_new StringBuilder();
     _   _int_action = event.getAction();
    ____  int_actionCode = action_& MotionEvent.ACTION_MASK;
 _ _  _ _ sb.append("event ACTION_"_).append(names[actionCode]);
_         if (actionCode == MotionEvent.ACTION_POINTER_DOWN
     _     _    ||_actionCode_== MotionEvent.ACTION_POINTER_UP) {
_   _       _sb.append("(pid " ).append(
      __ _   action_>> MotionEvent.ACTION_POINTER_ID_SHIFT);
_ _  _ _ _ _ sb.append(")" );
    __    }
    ____  sb.append("["_);
  _  _  __for (int i = 0; i_< event.getPointerCount(); i++)_{
   _         sb.append("#"_).append(i);
             sb.append("(pid " ).append(event.getPointerId(i));
 _ _   _ __  sb.append(")=" ).append((int) event.getX(i));
 _ _       __sb.append("," ).append((int) event.getY(i));
         ___ if (i_+_1 < event.getPointerCount())
   _____     _  sb.append(";" );
   __    _}
 __   _   sb.append("]"_);
          Log.d("event",_sb.