定期检查附近的 wifi 连接
我想定期检查 wifi 的开放连接。我应该为它编写一个服务并使用 AlarmManager 来启动服务,还是有其他简单的方法来做到这一点。
I want to check periodically for wifi open connections. Should i write a service for it and use AlarmManager to start service or is there any other simple way of doing that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议使用
AlarmManager
以及用户选择的轮询周期。I would recommend using
AlarmManager
, with a user-chosen polling period.