title: Android: OnTouch, MotionEvent.ACTION_MOVE is not recognized?
body: <p>Here is my code, I want to detect when my finger goes down the screen so when I touch the screen I detect the <code>ACTION_DOWN</code> but when I go down the screen with my finger, <code>ACTION_MOVE</code> is not recognized, neither <code>ACTION_UP</code>
  Do you know why?</p>
  
  <pre><code>        float x=0;
  protected void onCreate(Bundle savedInstanceState) {
          do things
  
          ImageView image2 = (ImageView) findViewById(R.id.imageView3);
          image2.setOnTouchListener(new OnTouchListener(){
  
          @Override
          public boolean onTouch(View arg0, MotionEvent arg1) {
              if (arg1.getAction()==MotionEvent.ACTION_DOWN) {
  
                  x=arg1.getX();
              }
              else {
                  if (arg1.getAction()==MotionEvent.ACTION_MOVE){
                      if (arg1.getX()&gt;x) {
                      do things
                      }
                  }
                  else {
                      if (arg1.getAction()==MotionEvent.ACTION_UP){
                          do things
                      }
                  }
              }
  }
  </code></pre>