I'm开发一个应用程序,在这里我倒是想有一个按钮,打开机器人内置WiFi菜单......(我不真的想要实现扫描,并通过自己的连接code)
I´m developing an application, where I´d like to have a button, which opens Androids built-in WiFi menu... (I don´t really want to implement scanning and connecting code by myself).
有没有意向,我可以送打开这个菜单?
Is there any Intent I can send which opens this menu?
您应该使用ACTION_PICK_WIFI_NETWORK动作:
You should use ACTION_PICK_WIFI_NETWORK
action:
startActivity(new Intent(WifiManager.ACTION_PICK_WIFI_NETWORK));