On 9月19日, 下午7時30分, drjunior <[EMAIL PROTECTED]> wrote:
> Hi,
>
> You need to implement the method  public boolean
> onTouchEvent(MotionEvent event) in your view and then you can see the
> coordinates of touching point calling the function event.getX() and
> event.getY()...
>
> More information 
> here:http://code.google.com/android/reference/android/view/MotionEvent.html
>
> 阿彬 wrote:
> > I want to get the coordinates of screen when I touch screen...
> > Because I want to use it to convert to lat/lon on map?
>
> > Anybody can help me?
>
> > thanks a lot

Thanks~

I complete it now!

But there is still some problem, can you or anyone help me?

The problem is:

When I click the screen, I got the  coordinates!

But...the  coordinates convert to lat/lon aren't the right location I
want...

How should I modify my code?

Thanks again!!!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to