0
내가 GPS를/비활성화 GPS는
Settings.Secure.setLocationProviderEnabled(getContentResolver(), LocationManager.GPS_PROVIDER, true);
또는
Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED, LocationManager.GPS_PROVIDER);
전환 할 수 있도록 아래의 코드를 사용하지만 던져 예외가있다 프로그래밍 방식으로 전환 :이 java.lang.SecurityException를 : 권한 거부 : 보안 설정에 쓰기
그러나 이미 androidManifestFile에서 권한을 설정했습니다.
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
그래서 Plz은 ...... 좀 도와