if(iBlank == 0){ try { curBrightnessValue=android.provider.Settings.System.getInt(getContentResolver(), android.provider.Settings.System.SCREEN_BRIGHTNESS); android.provider.Settings.System.putInt(getContentResolver(), android.provider.Settings.System.SCREEN_BRIGHTNESS,255); } catch (SettingNotFoundException e) { } } else { android.provider.Settings.System.putInt(getContentResolver(), android.provider.Settings.System.SCREEN_BRIGHTNESS,(int)curBrightnessValue); }
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="14" /> <uses-permission android:name="android.permission.WRITE_SETTINGS"></uses-permission>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)