6

I am trying to detect three fingers in the same time on HTC One M10. There is no motion called on any of this cases.

case MotionEvent.ACTION_DOWN: return "Down";
    case MotionEvent.ACTION_MOVE: return "Move";
    case MotionEvent.ACTION_POINTER_DOWN: return "Pointer Down";
    case MotionEvent.ACTION_UP: return "Up";
    case MotionEvent.ACTION_POINTER_UP: return "Pointer Up";
    case MotionEvent.ACTION_OUTSIDE: return "Outside";
    case MotionEvent.ACTION_CANCEL: return "Cancel";

I download some apps and they also cant detect 3 at the same time but they recognized two. How can I recognized only two if the motions not call. Thanks.

update After chacking agian the case MotionEvent.ACTION_MOVE didn't call. What can I do?

Eli Elezra
  • 525
  • 2
  • 4
  • 18

2 Answers2

3

Turn off HTC gesture on your device.

Sonny
  • 8,204
  • 7
  • 63
  • 134
Lenin
  • 31
  • 3
1

I used this app to check how much fingers my screen supports - https://play.google.com/store/apps/details?id=com.easylabs.multitouch.

After you receive exact number of touches your phone supports, you can detect multitouch by counting actions ACTION_DOWN (+1) and ACTION_UP(-1). With that counter you can always know how many fingers are touched to screen at this moment.

Link to answer Programmatically find how many fingers in multitouch Android device supports.

Community
  • 1
  • 1
Yev Kanivets
  • 1,780
  • 3
  • 22
  • 38
  • Thanks for your answer ,but how can I detect 2 from 3 points if all I want is to place all together at the same time? – Eli Elezra Apr 18 '16 at 12:09
  • What do you mean "to place all together at the same time"? How many fingers touched do you think you need? – Yev Kanivets Apr 18 '16 at 12:15
  • If I put 3 fingers together at the same time it doesn't call "ACTION_DOWN" but with other devices it calls. In the app from google play it also doesn't detect 3 fingers when I put all together at the same time it recognized just two of my fingers on the screen. – Eli Elezra Apr 18 '16 at 12:17
  • 1
    You can't actually put even 2 fingers at the same time exactly. It's just impossible to be so accurate. So if your device is able to handle multitouch - 3 consecutive ACTION_DOWN must be called. – Yev Kanivets Apr 18 '16 at 12:19
  • I update my question agian, what is your suggestion? – Eli Elezra Apr 19 '16 at 12:30
  • 1
    Try to start with a sample in Android Studio. You need to File -> New -> Import Sample -> Basic Multitouch. If it works on your HTC you can view the code and do the same. – Yev Kanivets Apr 19 '16 at 12:44
  • Is it possible to find out what is the max fingers the device can handle at the same time you touch? – Eli Elezra Apr 19 '16 at 14:08
  • Added a link to answer. – Yev Kanivets Apr 19 '16 at 14:15