Android 获取wifi的IP地址
摘要:
WifiManager wifimanage=(WifiManager)context.getSystemService(Context.WIFI_SERVICE);//获取WifiManager //检查wifi是否开启 if(!wifimanage.isWifiEnabled()) { wifimanage.setWifiEnabled(true); } WifiInfo wifiinfo= wifimanage.getConnectionInfo(); String ip=intToIp(wifiinfo.getIpAddress()); ... 阅读全文
posted @ 2012-05-03 23:13 java豆子 阅读(15159) 评论(4) 推荐(0) 编辑