Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
String locationProvider = LocationManager.NETWORK_PROVIDER;
// Or LocationManager.GPS_PROVIDER
Location lastKnownLocation = locationManager.getLastKnownLocation(locationProvider);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment