title: OnTouch with multitouch in android
body: <p>I am havig troubles counting how much touches are being made in each "half" of the screen. 
  When I touch in the upper side it counts correctly, and the same with the lower side. BUT, when I touch the upper side, dont release it, and touch the lower side, then it counts the wrong side, what is wrong in my implementation?</p>
  
  <pre><code>     myView.setOnTouchListener(new OnTouchListener() {
  
              public boolean onTouch(View v, MotionEvent event) {
                  // TODO Auto-generated method stub
                  int action = event.getAction() &amp; MotionEvent.ACTION_MASK;
                  if (action == MotionEvent.ACTION_DOWN) {
                      if(event.getY()&lt;400)
                      {
  
  
                      }
                      else
                      {
  
                      }
                  }
  
                  if (action == MotionEvent.ACTION_UP) {
  
                      if(event.getY()&lt;400)
                      {
  
                          zenbat=zenbat+1;
                          tv.setText(String.valueOf(zenbat));
  
                      }
                      if(event.getY()&gt;400)
                      {
                          zenbat1=zenbat1+1;
                          tv1.setText(String.valueOf(zenbat1));
  
                      }
                  }
  
                  if (action == MotionEvent.ACTION_POINTER_DOWN) {
                      if(event.getY()&lt;400)
                      {                           
                      }
                      else
                      {
                      }
                  }
  
                  if (action == MotionEvent.ACTION_POINTER_UP) {
                      if(event.getY()&lt;400)
                      {
                          zenbat=zenbat+1;
                          tv.setText(String.valueOf(zenbat));
  
                      }
                      if(event.getY()&gt;400)
                      {
                          zenbat1=zenbat1+1;
                          tv1.setText(String.valueOf(zenbat1));
  
                      }
                  } 
                  return true;
              }
          });
  </code></pre>