摘要: 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... 阅读全文
posted @ 2012-09-16 11:10 草原小狼 阅读(1956) 评论(0) 推荐(1) 编辑