title: android - why there is different Action_mask value for different devices
body: <p>I have made an application which is running perfectly fine on devices below ver 4.0 or we can say ics, but above ics its not working as it have to.
  In my application i was trying to make multitouch on two buttons simultaneously  and it was working perfect below ver 4.0.
  The value of action_mask was 6 nd 5 on touch and off touch.. whereas in versions above 4.0 its  1, 2, 0.
  why this?</p>
  
  <pre><code>enter code here
  
  @override
  public boolean ontouch(Event ev , MotionEvent event)    
  {
      int actionResolved = event.getAction() &amp; MotionEvent.ACTION_MASK;
      int action = paramMotionEvent.getAction() &amp; MotionEvent.ACTION_POINTER_INDEX_MASK;
  //  int actionShift = paramMotionEvent.getAction() &amp; MotionEvent.ACTION_POINTER_INDEX_SHIFT;
      Log.i("fil", "action resolved" +actionResolved);
      if(i==MotionEvent.ACTION_DOWN)
      {
  
          Log.i("fil", "action down");
          Log.i("fil", "action down value" +MotionEvent.ACTION_DOWN);
      }
  
  
      if(actionResolved == 5);
      {
  
          Log.i("fil", "action resolved" +actionResolved);
          scannerview1.startAnimation(anim1);
          scannerView2.startAnimation(anim1);
  
  
  
  
      }   
  
  
      if(actionResolved ==6)
              {
  
              scannerView2.clearAnimation();
              scannerview1.clearAnimation();      
          }
  
  
  return true;         
  }
  </code></pre>