Skip to content Skip to sidebar Skip to footer

Ontouch Motionevent Gettouchminor And Gettouchmajor Always The Exact Same Number Result, Why?

Looking at the documentation, the touch major and touch minor are axis of the ellipse for the touch event. one is for the length of the touch area longest measurement and the othe

Solution 1:

My project group and I are interested in the same thing (we posted this: Android finger detection - Orientation and ellipse )

We have found suggestive comments that maybe the touch screen drivers for most devices do not provide this data to the system.

We have now tested: Samsung Galaxy S2, HTC One, Nexus 5 (by LG) and Nexus 7 (by Asus), Samsung Galaxy Tap3

As we tested the Samsung Galaxy Tap 3, we finally we got different values for getTouchMajor() and getTouchMinor(), but joy was only brief as we found that getTouchMajor() = getTouchMinor() * 3, in any scenario, and getOrientation() was always 0, as with all the other devices.

Our conclusion is that most devices do not support, getTouchMajor(), getTouchMinor(). or getOrientation(). This is most likely a limitation of the capacitative touch screens.

Methods such as FTIR (Frustrated Total Internal Reflection) or DI (Diffuse Illumination) based touch surfaces, which are image processing based have shown to give more rich data of the touch interaction. But as far as we know none of these methods are at all applicable on mobile technology, and no handheld device is using either of these.

We were devasted to see that the possibilities with these metrics on handheld devices cannot be pursued.

EDIT: I just recently discovered through co-students of mine, that the Samsung produced Google Nexus 10 shows an ellipse with a direction line, when you activate Input>Pointer Location under developer settings.

This indicates to me that some devices do deliver on getTouchMinor and getTouchMajor as well as orientation. (or historical versions of the same functions). I have not had the chance to code anything for the device myself but it seems plausible.

Post a Comment for "Ontouch Motionevent Gettouchminor And Gettouchmajor Always The Exact Same Number Result, Why?"