On May 19, 11:04 pm, Dianne Hackborn <
hack...@android.com> wrote:
> The events returned by getevent are not in any kind of screen coordinate,
> they are in virtual coordinates of the touch screen. They must be scaled to
> the screen coordinates by interrogating the device for the range it reports.
> Of course, nobody actually needs to know this, because the framework takes
> care of reading the events and scaling them appropriately. (And MotionEvent
> coordinates are floats so you don't lose precision in the data being
> received.)
>
>
>
>
>
> On Wed, May 19, 2010 at 8:07 AM, Santosh Kadam <
sanma...@gmail.com> wrote:
> > Hi There -
>
> > I would like to get the real screen coordinates from an android device
> > screen. The adb-framebuffer gives me a size of 320x240 ....but
> > getevent shows a click at coordinates with the screen - 1024x1024.
>
> > How to get the real coordinates or the corrective precision
> > programatically ? I tried to use MotionEvent class and obtain raw x-y
> > coordinates. But those calls return the same values for me..
>
> > any help ?
>
> > thanks and regards,
> > Santosh
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-ndk" group.
> > To post to this group, send email to
andro...@googlegroups.com.
> > To unsubscribe from this group, send email to
>
> 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-ndk" group.
> To post to this group, send email to
andro...@googlegroups.com.
> To unsubscribe from this group, send email to
android-ndk...@googlegroups.com.