tags:

views:

147

answers:

2

Hi there,

I'm developing an Android application that might be used at night. Therefor, I need to turn off the buttons' backlight. How can I do this? On my own phone the backlight turns off after a while, but on the Motorola Droid I don't think this happens.

I'm using a wakelock to keep the screen on. Should I use another flag or how can I do this?

PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, WAKE_LOCK_TAG);
mWakeLock.acquire();

Thank you very much!

//Kaloer

+1  A: 

AFAIK, there is no API to control the backlight of the buttons -- sorry!

CommonsWare
Okay.. Thanks for the answer :)
Kaloer