尽管 WiFi 仍然打开,但 Android 失去连接
背景:平板电脑上的 Android 2.x 这是关于此的第二篇帖子。现在 WiFi 不会被 Android 关闭,但我虽然在一段时间后失去了连接,但这意味着服务器无法再到达 Android 设备(我遇到超时)。我至少在四种不同的平板电脑上尝试过这一点,所以我认为这不取决于硬件。连续轮询可以防止这种情况发生,但这应该只是一种解决方法。
Backround: Android 2.x on a tablet
That a the second post on this. Now the WiFi don't get turned off by android but I although loose the connectivity after some, means the server can no longer reach the android device (I get a timeout). I tried this at least on four different tablets so I don't think that it depends on the hardware. A continous polling prevent this but this should be just a workaround.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案就在 WiFi 路由器 AP(接入点)中。有一个称为 TTL(生存时间)的值,它控制连接在最后一次活动之后在没有活动关闭之前保持打开状态的时间。您需要在路由器中更改此值。
The answer lays in the wifi router AP (access point). There is a value thats called TTL (time to live) which controls how long a connection is held open after last activity before closing from no activity. You need to change this value in the router.