requestRouteToHost返回假的WiFi接口 [英] requestRouteToHost returns false on wifi interface
问题描述
公共布尔requestRouteToHost(INT NETWORKTYPE,诠释hostAddress)
public boolean requestRouteToHost (int networkType, int hostAddress)
这个方法ConnectivityManager如果使用NETWORKTYPE设置为WiFi接口总是返回false。
This method in ConnectivityManager if used with networkType set to wifi interface always returns false.
requestRouteToHost安卓说,它从未被实施了WiFi接口。
requestRouteToHost android says it was never implemented for the wifi interface.
即使InetAddress.isReachable()总是返回false的publicservers如google.com,java.com
Even InetAddress.isReachable() always returns false for publicservers like google.com, java.com
有没有,为什么他们失败的具体原因是什么?我可以测试是否有连接的唯一方法是通过使用运行EXEC执行平()。
Is there any specific reason why they fail? The only way I could test if there was connectivity was by executing the "ping" by using runtime exec().
推荐答案
显然,这是一个错误,这已经提高。
Apparently this is a bug and this has been raised.
这篇关于requestRouteToHost返回假的WiFi接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!