@Override
public void onLocationChanged(Location location) {
if (myLocationListener != null) {
myLocationListener.onLocationChanged(location);
double lat = location.getLatitude();
double lon = location.getLongitude();
tvLocInfo.setText(
"lat: " + lat + "\n" +
"lon: " + lon);
LatLng latlng= new LatLng(location.getLatitude(), location.getLongitude());
myMap.animateCamera(CameraUpdateFactory.newLatLng(latlng));
}
}
The series:
A simple example using Google Maps Android API v2, step by step.
Is there a easy method to convert LatLng() to Location() in the new Google Maps API v2 ?
ReplyDeletehello BBonDoo,
ReplyDeletePlease read the post Convert between LatLng and Location.
Hi,
ReplyDeleteIs there a way to locate users enrolled to my app? Thanks.