控制屏幕亮度Android的使用"后台服务"亮度、后台、屏幕、Android

2023-09-04 05:52:33 作者:该用户已成仙

问题: -

我想在Android中使用后台服务来控制屏幕的亮度。

I want to control the brightness of screen using a background service in android.

现有的解决方案: -

有贴在表格下面的链接类似的问题: -

There are similar question posted in the form in below link:-

http://stackoverflow.com/questions/1791340/adding-screen-brightness-controls-to-android-application

为什么现有的解决方案将无法正常工作?

所有的链接提供的解决方案能够很好地处理了的活动,但我想写一个后台服务控制屏幕的亮度。

All the solution provided in the link works well with an Activity, but I want to write a Background Service which controls the brightness of the screen.

所以你能有人帮我找到这个问题的解决方案。

So can you someone please help me find a solution on this issue.

在此先感谢

推荐答案

从你的服务,启动活动,并完成()是真正的快!

From your service, start an activity and finish() it real fast!