I'm writing an app to change screen brightness with seekbar and I use this code on event onProgressChanged
Settings.System.putInt(getApplicationContext().getContentResolver(),Settings.System.SCREEN_BRIGHTNESS,newBrightness);
but the application crashed after this code. I also added
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
to Manifest
Does anyone know why? please help me
Thanks in advance