[英]Remove WIFI-Network as device owner
I'm using nfc provisioning to deploy my device owner app. 我正在使用nfc设置来部署我的设备所有者应用。 What I want now is to remove/forget the wifi network from the device that is used during the provision (forever).
我现在想要的是从供应中永久使用的设备中删除/忘记wifi网络。 Is this possible?
这可能吗?
For everyone in the future: 对于未来的所有人:
It's actually pretty easy. 实际上很简单。
WifiManager.removeNetwork(int netId)
does the work for you when you're the device owner! 当您是设备所有者时,
WifiManager.removeNetwork(int netId)
会为您完成工作!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.