title: Android Multi-Touch Not Responding
body: <p>I am trying to build an application that uses multi-touch. I am using the <code>'getActionMasked()'</code>
  to get the current action and then check if the pointer count is two.</p>
  
  <p>How ever the code isn't working as I expect it to.</p>
  
  <p>There are mainly two problems that I am facing.</p>
  
  <ol>
  <li>The 'two-finger-touch' is not working at all.</li>
  <li>The <code>'MotionEvent.ACTION_UP'</code> is not executing.</li>
  </ol>
  
  <p>Here is the code :</p>
  
  <pre><code>imgs.setOnTouchListener(new OnTouchListener() {
  
              @Override
              public boolean onTouch(View arg0, MotionEvent m) {
                  // TODO Auto-generated method stub
  
                  //Prevent false touch events
                  long now = System.currentTimeMillis();
                  if (lastTime &gt; -1 &amp;&amp; (now - lastTime) &lt; threshold) {
                      // Return if a touch event was receive less than "threshold" time ago
                      return true;
                  }
  
                  lastTime = now;
  
                  switch(m.getActionMasked()){
                      case MotionEvent.ACTION_DOWN:
                          td = System.currentTimeMillis();
                          int pointerCount = m.getPointerCount();
                          if (pointerCount == 2){
                              //Do Work here. [Not Working]
                          }
                          return true;
                      case MotionEvent.ACTION_UP:
                          //Do Work here. [Not Working]
                          return true;
                  }
                  return arg0.onTouchEvent(m);
              }
          });
  </code></pre>
  
  <p>I am not sure what I am doing wrong. Looking forward to getting some help on this and some clarification on what I am doing wrong.</p>