Hi Dianne, Thanks for your help. It works well in the emulator though. I will check with other phones.
On Oct 3, 7:40 pm, Dianne Hackborn <[email protected]> wrote: > On Sat, Oct 2, 2010 at 11:48 PM, kevindroid <[email protected]> wrote: > > I am running on HTC Desire, as long I have the auto screen on, it > > won't adjust the brightness. Am I doing anything wrong with the above > > code? Or do you have any sample that force adjusting the brightness? > > sorry I am pretty new to android. > > I'd first want to know if it is not working with the standard platform. > It's possible that HTC has broken something. > > > I am trying the SCREEN_BRIGHTNESS_MODE, but it won't compile. looks > > like the builder can't find the string. Is it depreciated? > > You need to be building against API level 8 or higher. But please... these > things are not there for apps to poke at as they want. These are for the > settings app. This is *not* an API that is safe for multiple apps to use; > doing so will lead to conflicts between them, messing up the value from what > the user set. > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. -- 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

