title: MotionEvent Issues
body: <p>I was wondering how to get accurate, get(x) and get(y) values for a MotionEvent? What is happening is that when I touch a specific area on the screen, I tell an action to happen.
  The problem is that once I touch the screen and take my finger off, it still thinks my finger is at the same location (since that was the last location I touched). So when I have more than one Down event (for multitouch) it throws everything off. Is there a way to reset the X and Y values so when I let off the screen, they go back to 0 or null (or whatever)?</p>
  
  <p>Here is a video I just uploaded to explain it better, cause it is kind of confusing </p>
  
  <p><a href="http://www.youtube.com/watch?v=OHGj2z5SwQs" rel="nofollow">http://www.youtube.com/watch?v=OHGj2z5SwQs</a></p>
  
  <p>And here is the exact code I'm using </p>
  
  <pre><code>    int x = (int) e.getX();
      int y = (int) e.getY();
      int x2 = (int) e.getX(1);
      int y2 = (int) e.getY(1);
  
  
      boolean a1 = y &gt; 0 &amp;&amp; y &lt; 200....etc        
  
      boolean a5 = etc... 
  
      switch (e.getActionMasked()) {
      case MotionEvent.ACTION_DOWN:
          x =  0;
          y = 0;          
          x2 = 0;
          y2 = 0;
                      ////I'm setting the x and y values to 0 as suggested
  
          text.setText("x:" + String.valueOf(x) + "y:" + String.valueOf(y));
                      //// This is so I can see the values on the screen
          if (a1 &amp;&amp; a5){
              viewA1.setBackgroundColor(Color.GREEN);
              viewA5.setBackgroundColor(Color.GREEN);
          }
          if (a1) {
  
              viewA1.setBackgroundColor(Color.GREEN);
          }
  
  
  
          else if (a5) {
              viewA5.setBackgroundColor(Color.GREEN);
  
          }           
  
  
  
          break;
  
      case MotionEvent.ACTION_POINTER_1_DOWN:
          // /A Strummer
          x =  0;
          y = 0;
  
          x2 = 0;
          y2 = 0;
  
          text1.setText("x:" + String.valueOf(x2) + "y:" + String.valueOf(y2));
          if (a1 &amp;&amp; a5){
  
              viewA1.setBackgroundColor(Color.GREEN);
              viewA5.setBackgroundColor(Color.GREEN);
  
          }
          if (a1) {
  
              viewA1.setBackgroundColor(Color.GREEN);
          }
  
  
  
          else if (a5) {
  
              viewA1.setBackgroundColor(Color.GREEN);
  
          }       
       /////I have pretty much the same method for ACTION_UP &amp; ACTION_POINTER_UP; I set x &amp; y to 0.
  </code></pre>
  
  <p>Please let me know if you can think of anything. I tried the methods you guys explained and it would seem like it would help, but it hasn't.</p>