如何为“连接到"调用系统对话框安全网络? [英] How to invoke system dialog for "Connect to" secured network?

查看:32
本文介绍了如何为“连接到"调用系统对话框安全网络?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序需要与安全网络建立新的 Wi-Fi 连接.问题是应用程序不知道密码/密钥/密码或 WEP/WPA 调用的任何内容.它不应该知道!

My application needs to establish a new Wi-Fi connection to a secured network. The catch is that the application does not know the password/key/passphrase or whatever it is called for WEP/WPA. And it should not know!

在这种情况下,我希望我的应用程序调用系统连接到"对话框.只有系统 WifiManager 应该记住这个密码,我的应用程序不涉及这一事实对最终用户来说应该是显而易见的.

In such case, I would like my application to invoke the system "Connect to" dialog. Only the system WifiManager should remember this password, and the fact that my application is not involved should be obvious to the end user.

这可能吗?我认为它应该类似于使用 Intent() for android.content.Intent.ACTION_SEND 与其他应用程序发送图片.

Is this possible? I thought that it should be similar to using Intent() for android.content.Intent.ACTION_SEND to send a picture with another applications.

推荐答案

您可以尝试启动连接设置首选项活动

you can just try launching the connection settings preferences activity

action=android.intent.action.MAINcomp={com.android.settings/com.android.settings.wifi.WifiSettings}

action=android.intent.action.MAIN comp={com.android.settings/com.android.settings.wifi.WifiSettings}

这篇关于如何为“连接到"调用系统对话框安全网络?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆