views:

440

answers:

2

Is multitouch available to Android app developers? I've heard its on the new 2.0 version but only seen it accomplished on the internet browser.

+3  A: 

Take a look at this API here:

http://developer.android.com/reference/android/view/MotionEvent.html

Basically lets you keep track of more than one pointer at a time.

ThePosey
+2  A: 

In addition to ThePosey's answer:

http://developer.android.com/guide/topics/ui/ui-events.html

onTouch() - This returns a boolean to indicate whether your listener consumes this event. The important thing is that this event can have multiple actions that follow each other. So, if you return false when the down action event is received, you indicate that you have not consumed the event and are also not interested in subsequent actions from this event. Thus, you will not be called for any other actions within the event, such as a fingure gesture, or the eventual up action event.

Jim Schubert