I have this scenario : My android service location is enabled but my gps (gps symbol) is not enabled.
I want to check if my service location is enabled or not and launch activity. I want to check if my gps (see gps print screen - gps symbol) is enabled or not and toast message to user.
The code below checks if my gps (see gps print screen - gps symbol) is enabled or not only but does not check if service location is enabled. <== this is what I need to... thx
final LocationManager locationManager =
(LocationManager) context.getSystemService(context.LOCATION_SERVICE);
try {
gps_enabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
I need to identify both situations and handle this...
Lets suppose I have my gps (background) disabled. (see gps print screen - gps symbol) and I have my service location enabled.