Android wifi
时间: 2023-08-28 11:08:34 浏览: 204
android wifi
Android wifi的连接是通过WifiManager类来实现的。可以使用WifiManager的getConfiguredNetworks()方法获取WifiConfiguration对象的列表,然后使用enableNetwork()方法连接到指定的热点。\[1\]在Android源码项目(AOSP)中,与wifi相关的代码位于frameworks/base/wifi/java和frameworks/base/services/java。其中,com.android.server.wifi包包含了与WiFi服务相关的代码。\[2\]对于开发者来说,Android SDK提供了方便的WiFi编程接口,主要相关类是WifiManager。\[3\]
#### 引用[.reference_title]
- *1* [Android wifi属性简介 及 wifi信息获取(wifi列表、配置信息、热点信息](https://blog.csdn.net/m0_63935228/article/details/121225581)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v4^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [Android WIFI架构](https://blog.csdn.net/weixin_45030234/article/details/127260668)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v4^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文