📜  移动网络ip地址权限android - Java代码示例

📅  最后修改于: 2022-03-11 14:52:45.414000             🧑  作者: Mango

代码示例1
I used this and it workd !
WifiManager wm = (WifiManager) getSystemService(WIFI_SERVICE);
String ip = Formatter.formatIpAddress(wm.getConnectionInfo().getIpAddress());
Below permissions in the manifest file.