代码无法连接到 AP,但 Android 可以
我在使用 WiFi 时遇到了一个奇怪的问题,因为我的 Android 手机可以使用“本机”设置 -> 无线和无线连接到特定 AP。网络 -> 连接,但我无法使用在同一部手机上运行的代码进行连接。但是,我的代码可以连接到任何其他 AP。我搜索了帖子,但找不到任何有用的内容。因此,我希望获得以下问题之一的帮助:
有没有一种简单的方法可以找到当用户单击“设置”->“无线和无线”时 Android 执行的源代码?网络->连接。我似乎找不到它,但我以前也从未尝试过。如果有人有缓存页面的链接,我们将不胜感激。我知道我可以下载源代码,但这对我来说现在是一个主要项目,我希望避免它。
- 方法可以让我以编程方式执行与 Android 相同的代码,而无需在用户尝试连接到 AP 时 Android 弹出确认对话框?
感谢您的任何和所有帮助。
鲍勃
I have an weird issue with WiFi in that my Android phone can connect to a specific AP using the "native" Settings->Wireless & Network->Connect but I can't connect using my code running on the same phone. However, my code can connect to any other AP. I've searched the postings but couldn't find anything that was helpful. So I am hoping to get help with one of the following questions:
Is there an easy way to find the source code that Android executes when the user clicks on Settings->Wireless & Networks->Connect. I can't seem to find it but I've never tried this before either. If someone has a link to cached page it would be greatly appreciated. I know I can download the source code but that is a major project for me now and I am hoping to avoid it.
Alternatively, is there a way I can programmatically just execute the same code that Android does without the confirmation dialog box that Android pops up when the user tries to connect to an AP?
Thanks for any and all help.
Bob
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以浏览“设置”应用程序的源代码 通过网络浏览器。 WiFi 相关类似乎位于 src/com/android/settings/wifi 中。
You can browse the source code of the Settings application via a Web browser. The WiFi related classes appear to be in
src/com/android/settings/wifi
.