You can make you MapView implement LocationListener (it does not have to be
another class) and then in the onLocationChanged() method call
getController().setCenter(...) (or some such) on the MapView that you have
in your layout.
HTH
Ludwig

2008/11/23 Ryan <[EMAIL PROTECTED]>

>
> Hi all,
>
> I've implemented a Mapview in the main activity and used
> LocationListener to monitor the location. If the location changes,
> method "public void onLocationChanged(Location location)" will be
> called.
>
> But then how can I transfer the location data from Listener to the
> main activity where my mapview located? Thanks.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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