Loading

Friday, February 4, 2011

Get system screen brightness

Last exercise describe how to "Change system screen brightness". If you want to get the current setting of system screen brightness, you can use the code:

        try {
curBrightnessValue=android.provider.Settings.System.getInt(
getContentResolver(), android.provider.Settings.System.SCREEN_BRIGHTNESS);
} catch (SettingNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

SHARE TWEET

Thank you for reading this article Get system screen brightness With URL http://x-tutorials.blogspot.com/2011/02/get-system-screen-brightness.html. Also a time to read the other articles.

0 comments:

Write your comment for this article Get system screen brightness above!