There is no such thing in PowerManagerService to turn on/off
backlight. PowerManagerService does dimming only. You need to implement the
turn off/on stuff by your own. U can use Timer/TimerTask once the screen
goes dim. There is no wakelock for that.


-- 
Regards,
Pratik Prajapati

On Sat, Sep 24, 2011 at 11:18 PM, Liu Xin <[email protected]> wrote:

> PowerManagerService does it. you may refer to WakeLock in android
> documents.
>
> --lx
>
>
> On Sun, Sep 25, 2011 at 12:34 AM, Akash <[email protected]> wrote:
>
>> Hi,
>>
>> I wanted to know as to whether there is a control in the Android
>> framework which notifies the backlight and LCD drivers to switch them
>> on or off?
>>
>> I have seen some code in PowerManagerService.java which uses
>> LightService class to change the backlight brightness. But is there
>> any part of code in Framework which also control the process of
>> switching the LCD display on or off.
>>
>> Regards,
>> Akash
>>
>> --
>> unsubscribe: [email protected]
>> website: http://groups.google.com/group/android-porting
>>
>
>  --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to