我找不到设备休眠时可以监听的事件列表。
例如,可以使用 LocationListener while asleep .
My goal is to detect when a user is in his car by at least one of the following methods, which will then wake the phone:
- NFC tag on car dock
- Bluetooth-enabled car radio in range
但失败了,我愿意接受想法。
谢谢
最佳答案
目前最好的办法是按照这个链接定期唤醒手机:
Android - periodically wake up from standby mode?
根据 the documentation ,我可以唤醒手机并只使用 CPU,同时保持屏幕关闭。
但是可能会有缺点,也许有更好的方法。
关于android - android sleep 时可以听什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25483224/