关闭按钮的背光 [英] Turn off backlight of the buttons

查看:152
本文介绍了关闭按钮的背光的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发展,可能在夜间使用的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!

这篇关于关闭按钮的背光的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆