我的活动将被编程推出

我的活动将被编程推出

本文介绍了如何解锁设备时,我的活动将被编程推出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我面对关于解锁装置一旦有报警发生时,服务启动的活动的一个问题。
方案是:

I am facing one problem regarding unlocking the device when Service launched activity when any alarm occurs.Scenario is :

我的应用程序是有活动和服务,当它被推出的所有活动将获得与注册服务。
服务将使用WiFi建立与服务器的连接,当服务器将发送任何报警我的应用程序推出一个活动更新到用户有一些发生报警时,现在的问题是当设备进入睡眠模式,屏幕变暗和设备将被锁定在一旦有报警然后生成我要解锁屏幕和屏幕的亮度应该恢复,因为它是处于活动状态,然后需要开始练习这种情况,但我没能解锁屏幕,以及重夺同时发动屏幕亮度的活动。

My application is having activities and service and all activities will get register with service when it gets launched.Service will establish the connection to the server using WiFi, and when server will send any alarm my application has to launch one activity to update to the User that there is some alarm occurs, Now problem is when Device goes to sleep mode and screen becomes dark and device will get locked in that situation when any alarm generates then I have to unlock the screen and screen brightness should regain as it was in active state and then need to launch the activity, but i failed to unlock the screen as well as regain the brightness of the screen while launching the activity.

请帮我解决适当code例如这个问题。

Please help me to solve this issue with proper code example.

问候,
皮克斯

Regards,Piks

推荐答案

您应该使用的类

这篇关于如何解锁设备时,我的活动将被编程推出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 14:21