try {
curBrightnessValue=android.provider.Settings.System.getInt(
getContentResolver(), android.provider.Settings.System.SCREEN_BRIGHTNESS);
} catch (SettingNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
4 comments:
Hi, thanks for the blogging :)
How can i change the wallpaper by code?
hello Erol,
please refer Set Wallpaper using WallpaperManager
Thank you so much.
HI I try the code, but it always give me a value of 102 regardless which level of brightness I have adjusted. May I know why?
Post a Comment