摘要:
做android的开发时,遇到了获取有线ip地址的问题.不多说 上代码!for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {NetworkInterface intf = en.nextElement();if (intf.getName().toLowerCase().equals("eth0") || intf.getName().toLowerCase().equals("wlan0&quo 阅读全文
posted @ 2012-06-01 14:08
Adam Viki
阅读(4807)
评论(1)
推荐(0)