// Registering to the Manager
LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
-
locationManager.requestSingleUpdate(LocationManager.PASSIVE_PROVIDER, mLocationListener, null);
-
- Log.w("Adrien", "==>" + locationManager.getLastKnownLocation(LocationManager.PASSIVE_PROVIDER));
- Log.w("Adrien", "==>" + locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER));
- Log.w("Adrien", "==>" + locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER));
}
}