Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想编写一个程序,当设备在同一个 wifi 网络中时,它想要限制位置更新。我该怎么做呢?如何检查设备是否与之前在同一个 wifi 网络中?
WifiManager.getConnectionInfo()将为您提供有关当前 Wifi 网络的信息。
WifiManager.getConnectionInfo()