1

Can we create multi touch in Android? I have multiple images and have to drag and drop that images together on my device. Is it possible? if it is possible then any ideas would help a lot.

Thanks

Vivek Kalkur
  • 2,200
  • 2
  • 21
  • 40
Android007
  • 121
  • 1
  • 1
  • 10
  • Hi Nidhi, Good Morning, As per My Knowledge, android phones does not supports for multi touch. This is possible in iPhone. – Lucifer Nov 19 '11 at 05:57
  • Is there no chance to multi touch? but why not? – Android007 Nov 19 '11 at 06:00
  • I guess is native dependent functionality, when android it self is not allowing for multi touch, you can not achieve it. However you might achieve in another way like User PolamReddy suggested you. In case of iPhone, the MAC it self allows the multi touch functionality. so it is possible in iPhone's case. – Lucifer Nov 19 '11 at 06:28

1 Answers1

1

You need to intercept touch events in your view. Implement an onTouchListener and inside the function:

 onTouch (View v, MotionEvent event){
    int count=getPointerCount();
   if(count >1){
      // it means there are more than 1 point touched on the screen.
   }
}

This is available only since API 5

rDroid
  • 4,875
  • 3
  • 25
  • 30