When you write android app, you sometimes may need to change system settings. For example change the android device screen brightness. But such action need your app has android.permission.WRITE_SETTINGS permission, otherwise you may encounter below exception.