Capacitive touch screens detect size much more than pressure, so in general you will find the pressure varies closely with size (this actually is often true on resistive screens as well, but from my experience capacitive has even less pressure sensitivity.)
The screen definitely reports size -- if you run Pointer Location from Dev Tools, you will see the actual touch data, and size has always been reported. Fwiw, trying to do anything useful with this data is going to be super-tricky, because screens from different vendors can behave very differently and the data I have seen from all of our screens is super noisy and easy to confusing by pressing on the screen in different ways. I think it is probably useful for things were these are treated as a very analog signal providing direct feedback to the user (such as a drawing app where the size/pressure modifies the pen strokes as you draw on the screen), and not much else. On Thu, Sep 10, 2009 at 1:12 PM, smallbug <[email protected]> wrote: > > Hi, > > Debugging on my G1 phone, I am trying to use > android.view.MotionEvent.getPressure() and MotionEvent.getSize(). > > For MotionEvent.getSize(), I always get 0 (the documentation says it > returns a value ranging from 0 to 1; > > For MotionEvent.getPressure(), it seems to me this actually reflects > the real finger touch size, as opposed to "pressure"; for me, I get > values range from 0 - 0.63. > > Am I missing anything or is it a known bug of the SDK? > > Thanks. > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

