private final LocationListener mLocationListener = new LocationListener() {
@Override
public void onLocationChanged(final Location location) {
Log.d(TAG, "onLocationChanged: Provider = " + location.getProvider());
Log.d(TAG, "onLocationChanged: accuracy = " + location.getAccuracy());
Log.d(TAG,
"onLocationChanged: lon = " + location.getLongitude() + " lat = " + location.getLatitude()
+ " alt = " + location.getAltitude());
Bundle extras = location.getExtras();
for (String s : extras.keySet()) {
Log.d(TAG, "onLocationChanged: " + s + " = " + extras.get(s));
}
mController.setCenter(new GeoPoint(location));
mController.setZoom(mZoomLevel);
}
@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
Log.d(TAG, "onStatusChanged: " + provider + " status = " + status);
extras.keySet();
for (String s : extras.keySet()) {
Log.d(TAG, "onStatusChanged: " + s + " = " + extras.get(s));
}
}
@Override
public void onProviderEnabled(String provider) {
Log.d(TAG, "onProviderEnabled: " + provider);
}
@Override
public void onProviderDisabled(String provider) {
Log.d(TAG, "onProviderDisabled: " + provider);
}
};