Note that this code is not using the SDK, and will break in a future
release.

On Sun, Jan 11, 2009 at 9:35 PM, birdy <[email protected]> wrote:

>
> Hi all :
>
> I have not test yet but I think this API
> IHardwareService.setScreenBacklight(brightness) is available now.
> http://www.androidjavadoc.com/1.0_r1_src/android/os/IHardwareService.html
>
> On 2008年12月24日, 上午6時23分, Daniel <[email protected]> wrote:
> > Yes, does anybody have an answer for this?? thanks
> >
> > On Dec 9, 7:46 pm, junker37 <[email protected]> wrote:
> >
> > > Does anybody have an answer for this?  I am looking to change
> thebrightnesslevel as well.
> >
> > > On Oct 30, 9:44 am, Peli <[email protected]> wrote:
> >
> > > > It seems changing thebacklightthrough the following code does not
> > > > affect the lightbrightnessimmediately:
> >
> > > > 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;...
> > > > ) uses IHardwareService to changebrightnessimmediately.
> >
> > > > This API is not available to us. So is there an alternative way to
> > > > immediately force thebrightnesschange after setting it through
> > > > Settings.System? Is there a workaround that we could use?
> >
> > > > Peli
>
> >
>


-- 
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.  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
-~----------~----~----~----~------~----~------~--~---

Reply via email to