关闭按钮的背光按钮

由网友(诉説)分享简介:我发展,可能在夜间使用的Andr​​oid应用程序。为此,我需要关闭按钮的背光。我怎样才能做到这一点?在我自己的电话了一段时间后背光熄灭,但摩托罗拉Droid我不认为这会发生。 I'm developing an Android application that might be used at night. The...

我发展,可能在夜间使用的Andr​​oid应用程序。为此,我需要关闭按钮的背光。我怎样才能做到这一点?在我自己的电话了一段时间后背光熄灭,但摩托罗拉Droid我不认为这会发生。

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.

我使用的是wakelock保持在屏幕上。我应该使用其他标志或我怎么能做到这一点?

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

//Kaloer

推荐答案

AFAIK,没有API来控制按钮的背光 - !对不起

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

阅读全文

相关推荐

最新文章