Disabling multi-touch on my app

Paul Ma picture Paul Ma · Jul 9, 2012 · Viewed 7.2k times · Source

For some reasons I have to disable the multi-touch feature on my app. The user can press only one button at a time, or the app would crash. Is there any way to implement this requirement?

Thanks a lot!

Answer

Dmytro Danylyk picture Dmytro Danylyk · Jan 27, 2013

To prevent this you should turn off splitMotionEvents or windowEnableSplitTouch attribute inside ViewGroup were buttons are located.

android:splitMotionEvents="false"