Android 中的闪烁屏幕或闪烁屏幕
请告诉我如何关闭 Android 设备的背光,我尝试通过 setBrightness 方法,但它不适用于模拟器
我的主要任务是开发一个 Android 应用程序,其中每当发生任何事件时系统都必须发出警报用户会收到这样的警报,其中正在播放某些 mp3 文件并显示闪烁屏幕或闪烁屏幕。
我执行 Mp3 文件播放任务,但我该如何处理闪烁屏幕。
我使用服务,而不是在活动中,因此无法使用 WindowManager,因此请有任何方法通过通过服务而不是活动调用的帮助方法来做到这一点。
please may you tell me how i can turn off back light of android device, i try through the setBrightness method but it not works on emulator
my main task is to develop an android application in which whenever any event is occurs then a system have to alert the user by such an alarm in which some mp3 file is playing and flashing screen or blinking screen is showing.
I do the Mp3 file playing task, but how I can do for the Blinking Screen.
I use the Services, not in activity, so cant use the WindowManager, so please there is any way to do this by helping methods which call through Service instead of Activity.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
模拟器不支持亮度改变。例如,如果您进入手机设置并更改亮度,则不会发生任何事情。如果您想看到亮度变化,您需要一个真实的设备。
Emulator does not support brightness changing. For example, if you go to phone settings and change brightness there, nothing will happen. You need a real device if you want to see brightness changes.