gpt4 book ai didi

android - android sleep 时可以听什么?

转载 作者:太空狗 更新时间:2023-10-29 15:02:16 26 4
gpt4 key购买 nike

我找不到设备休眠时可以监听的事件列表。

例如,可以使用 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com