Hi,

try seen this:

http://developer.android.com/intl/fr/reference/android/view/MotionEvent.html

With this you can get the x,y coordinates using the fucntions
getRawX<http://developer.android.com/reference/android/view/MotionEvent.html#getRawX%28%29>and
getRawY

Example:

                if (event.getAction() == MotionEvent.ACTION_DOWN) {
                        mX1 = (int)event.getRawX();
                        mX2 = (int)event.getRawY();

Regards,

Rogerio


2010/2/18 ian <stilbit...@gmail.com>

> I want to read my cursor position so that, after a tap, I can convert
> the screen x,y coordinates to a Geopoint for distance calculations. I
> found a snippet to convert x,y coordinates to a Geopoint and probably
> could use Projection instead, but how do I input those screen x,y
> values in the first place?
> \
> This is probably straightforward, but I'm confused. The class Cursor
> seems to be something different than what |I need..
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to