Disable or prevent multitouch in Activity
if someone still searching for best solution, put in the xml the following code :
android:splitMotionEvents = false
I did it like this :
@Override
public boolean onTouchEvent(MotionEvent event) {
// TODO Auto-generated method stub
if(event.getPointerCount() > 1) {
System.out.println("Multitouch detected!");
return true;
}
else
return super.onTouchEvent(event);
}
I think you can override onTouchEvent for any view.
The easiest way I found to force single touch across an entire app is to set it using a theme:
<style name="MyTheme" parent="@android:style/Theme.Holo.Light">
<item name="android:windowEnableSplitTouch">false</item>
<item name="android:splitMotionEvents">false</item>
</style>
Manifest:
<application
android:label="@string/app_name"
android:theme="@style/MyTheme" >