Salaam my friends,
Is there any specific code that I can use to turn off the location services in my phone from my app?
Regards, Tareq Al-Aqarbeh
Salaam my friends,
Is there any specific code that I can use to turn off the location services in my phone from my app?
Regards, Tareq Al-Aqarbeh
You cannot actually mess directly with the device settings. All you can do is start the location settings intent through your app so the user can turn on/off what you need
Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
startActivity(intent);