android獲取有線、wifi、3G(4G)的IP

//獲取ip地址 public static String getLocalIPAddress(Context context) { NetworkInfo info = ((ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE)).getActiveNetworkInfo(); if
相關文章
相關標籤/搜索