配置清单文件加上权限

private String getLocalIpAddress() {
        int paramInt = ((WifiManager) getSystemService("wifi")).getConnectionInfo().getIpAddress();
        return (paramInt & 0xFF) + "." + (0xFF & paramInt >> 8) + "." + (0xFF & paramInt >> 16) + "."
                + (0xFF & paramInt >> 24);
    }

 

相关文章:

  • 2022-02-16
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-09-07
  • 2021-06-05
猜你喜欢
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2021-11-19
  • 2022-03-05
  • 2022-12-23
相关资源
相似解决方案