转载请注明:
/u012184853/article/details/50145091
获取android手机信息,网络ip,序列号,mac地址,设备id等信息,在这里做一个总结,注意:要添加相应的权限,否则会得不到数据
/*** @return 获取wifi状态下地址*/public String getLocalIpAddress() {WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);WifiInfo wifiInfo = wifiManager.getConnectionInfo();// 获取32位整型IP地址int ipAddress = wifiInfo.getIpAddress();// 返回整型地址转换成“*.*.*.*”地址return String.