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.
我的应用程序需要与安全网络建立新的 Wi-Fi 连接。问题是应用程序不知道密码/密钥/密码短语或 WEP/WPA 调用的任何内容。它不应该知道!
在这种情况下,我希望我的应用程序调用系统“连接到”对话框。只有系统 WifiManager 应该记住这个密码,并且我的应用程序没有涉及的事实对最终用户来说应该是显而易见的。
这可能吗?我认为它应该类似于使用 android.content.Intent.ACTION_SEND 的 Intent() 与其他应用程序一起发送图片。
you can just try launching the connection settings preferences activity
action=android.intent.action.MAIN comp={com.android.settings/com.android.settings.wifi.WifiSettings}