Start Androids WiFi-Manager by sending an intent?

给你一囗甜甜゛ 提交于 2019-12-03 20:06:26

You should use ACTION_PICK_WIFI_NETWORK action:

startActivity(new Intent(WifiManager.ACTION_PICK_WIFI_NETWORK));

Also, if you want to implement it yourself (so it looks like your app), the Android SDK offers the WifiManager-class, which should do most of the work for you.

If you want to open the default Wifi settings dialog, you can use an intent with an ACTION_WIFI_SETTINGS action

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!