控制屏幕亮度Android的使用"后台服务" [英] Control screen brightness in android using " Background Service"

查看:279
本文介绍了控制屏幕亮度Android的使用"后台服务"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题: -

我想在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:-

<一个href="http://stackoverflow.com/questions/1791340/adding-screen-brightness-controls-to-android-application">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!

这篇关于控制屏幕亮度Android的使用&QUOT;后台服务&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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