It seems changing the backlight through the following code does not
affect the light brightness immediately:

Settings.System.putInt(getContentResolver(),
            Settings.System.SCREEN_BRIGHTNESS, 255);

but the change is only visible after a while (e.g. after screen dims
and gets bright again later). It seems the Settings /
BrightnessPreferences.java (
http://git.source.android.com/?p=platform/packages/apps/Settings.git;a=blob;f=src/com/android/settings/BrightnessPreference.java;h=a9851cc93a2c6786af961d098767425e8c8c1a12;hb=HEAD
) uses IHardwareService to change brightness immediately.

This API is not available to us. So is there an alternative way to
immediately force the brightness change after setting it through
Settings.System? Is there a workaround that we could use?

Peli

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to