So I tried the 'correct' way to do it:

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

And it doesnt work. It seems to change the brightness value on the
Display Settings Screen but not the actual display brightness. I tried
with putString too, no game.

I also tried to use the IHardware approach (described by joby some
messages ago), but it seems to doesn't even exist on SDK 1.1 (at least
eclipse could not resolve it).

But there must be one way working because the Flashlight app on the
Market does that perfectly. So, if anyone can provide a different
approach I will be very thankful.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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