Skip to content Skip to sidebar Skip to footer

"write Settings" Permission Not Granted Marshmallow Android

Solution 1:

use this for write setting permission:

 public void settingPermission() {

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            if (!Settings.System.canWrite(getApplicationContext())) {
                Intent intent = new Intent(Settings.ACTION_MANAGE_WRITE_SETTINGS, Uri.parse("package:" + getPackageName()));
                startActivityForResult(intent, 200);

            }
        }
    }

Post a Comment for ""write Settings" Permission Not Granted Marshmallow Android"