title: How to ignore palm swipe event on Samsung Galaxy 3
body: <p>I have some buttons in my Android app which play a tone when pressed and stop playing when the button is released. I use code as below to implement this</p>
  
  <pre><code>  private OnTouchListener dialTouch = new OnTouchListener() 
    {
      public boolean onTouch(View v, MotionEvent event)
      {
           if ( event.getAction() == MotionEvent.ACTION_DOWN) 
              {   
                   //play tone
              }
              else  if ( event.getAction() == MotionEvent.ACTION_UP) 
              {
                      // stop tone
              }
       }
    }
  </code></pre>
  
  <p>However on a Samsung Galaxy 3 the palm swipe feature eg when taking a screenshot is triggering these MotionEvent.ACTION_DOWN events. Is there any way to ignore the palm swipe event in the code but still be able to generate the tone on press of the button.</p>
  
  <p>Thanks</p>