I'm trying to get the location of the user:
// getting GPS status
isGPSEnabled = locationManage.isProviderEnabled(LocationManager.GPS_PROVIDER);
// getting network status
isNetworkEnabled = locationManager
.isProviderEnabled(LocationManager.NETWORK_PROVIDER);
if (!isGPSEnabled && !isNetworkEnabled) {
// no network provider is enabled
Log.e(MyLogger.TAG, "Non providers are enabled");
I need the user to set enable network location
or turn on GPS
.
How can i help the user do each of these options?
open the device settings page and return to my activity on back press.
change these two device settings from within my application only?
meaning opening a confirmation dialog that will enable these two settings.