捕获触摸事件即使系统处于休眠 [英] Capturing touch events even while system is in sleep

查看:116
本文介绍了捕获触摸事件即使系统处于休眠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发这就要求系统获得的触摸事件,系统进入睡眠模式,即使或者用户锁定屏幕后,我试图寻找一个解决方案的应用程序,但它是很难找到的。
我应该要设置任何权限或有任何内置的方法,或者我可以覆盖任何方法来执行此功能。


解决方案

  

我开发这就要求系统获得的触摸事件,系统进入睡眠模式,甚至后一个应用程序的用户锁屏后


幸好,这是不可能的。否则,该设备将不睡着了,电池寿命会因此而受到影响。

I'm developing an app which requires the system to get the touch events even after the system goes to sleep mode or after the user locks the screen, I tried searching for a solution but it is hard to find one. Should I want to set any permissions or is there any inbuilt methods or can I override any methods to perform this functionality.

解决方案

I'm developing an app which requires the system to get the touch events even after the system goes to sleep mode or after the user locks the screen

Fortunately, this is not possible. Otherwise, the device would not be asleep, and battery life would suffer as a result.

这篇关于捕获触摸事件即使系统处于休眠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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