How to support multitouch feature on the activity in android 2.1? -


i want support multitouch feature in application having set of activities, how achieve programmatically in android 2.1 version?

please share sample code.

regards, piks

i know question old, needs update every , then. how can newer versions of android:

@override public boolean ontouchevent(motionevent e) {     super.ontouchevent(e);      switch (motioneventcompat.getactionmasked(e)) {         case motionevent.action_down:         case motionevent.action_pointer_down:             //do action             break;      }      return true;  } 

there no need call setontouchlistener because called no matter whenever screen touched. overriding can customize touch events. keep in mind normal ontouchlistener not support multitouch


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -