摘要:
android 获取手机ip的方式第一,通过WifiManager获取private String getLocalIPAddress (Context context) { WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); WifiInfo wifiInfo = wifiManager.getConnectionInfo(); String ipAddress = FormatIP(wifiInfo.g... 阅读全文