and to read it and log it:
int ib = Settings.System.getInt(getContentResolver(),
Settings.System.SCREEN_BRIGHTNESS,-1);
Log.d("SCREEN_BRIGHTNESS (0-255) {"+ib+"}");
On Mar 20, 6:53 pm, [email protected] wrote:
> int bright = 50;
> Settings.System.putInt(ftaContext.getContentResolver(),
> Settings.System.SCREEN_BRIGHTNESS, bright);
>
> On Mar 19, 9:14 pm, joby <[email protected]> wrote:
>
> > Hi,
>
> > I want to use the system brightness in android,anybody can give
> > me a sample code of getting the brightness from android.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---