title: Disable multi finger touch in my app
body: <p>My app uses one Activity to host several fragments. Each time one fragment is shown on the phone screen.The view of each fragment consists of several image icons. </p>
  
  <p>Currently, user is able to press on two icons <strong>simultaneously</strong> with two fingers (with each fingure press on one icon). <strong>I want to disable this multi-touch feature</strong> on my app to allow <strong>only one icon press take effect at a time</strong>.</p>
  
  <p><strong>I tried the following ways:</strong></p>
  
  <p><strong>Way 1:</strong> in my app theme, I added:</p>
  
  <pre><code>&lt;item name="android:windowEnableSplitTouch"&gt;false&lt;/item&gt;
  </code></pre>
  
  <p><strong>Way 2:</strong> In Android Manifest xml, I added:</p>
  
  <pre><code>&lt;uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" /&gt;
  </code></pre>
  
  <p><strong>Way 3:</strong> in my Activity:</p>
  
  <pre><code>@Override
  public boolean onTouchEvent(MotionEvent event) {
  
      if(event.getPointerCount() &gt; 1) {
          System.out.println("Multitouch detected!");
          return true;
      }
      else
         return super.onTouchEvent(event);
      }
  </code></pre>
  
  <p>Unfortunately, none of my solutions work. So, <strong>How can I disable multi-touch feature</strong> in my app??  </p>