Well, this is another problem(logic problem)...

But my first solution to your problem is:

First, you need to know what's the latitude, longitude of your central
point in your MapView...
Second, you catch the point where user make a mouse click ( the up
left side of screen have the coordinates 0,0)
Last, you need to "understand" ,"translate" and "add" the coordinates
from your MotionEvent to the central point of your MapView..



On Sep 19, 6:13 pm, 阿彬 <[EMAIL PROTECTED]> wrote:
> 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