Can't Switch GPS On/Off and Wireless Location Settings through System.secure
问题 I want switch Location Providers On and Off, that is GPS and Wireless Location I added permission in manifest my code to change wireless location settings is... Settings.Secure.setLocationProviderEnabled(context.getContentResolver(), provider, true); whenever I run this code logcat shows error logcat out put Caused by: java.lang.SecurityException: Permission denial: writing to secure settings requires android.permission.WRITE_SECURE_SETTINGS I searched about this, many person says The WRITE