(Analysis of Android WiFi principle
First, check the related classes in the SDK and the WiFi operation. android. net. WiFi support is provided in the WiFi package. Common classes include WiFi manager, WiFi info, WiFi configuration, and scanresult. WiFi management is operated through the methods exposed by WiFi manager. It's really depressing to look at it carefully. This class does not provide a method to connect to WiFi, but it does disconnect. () method is disconnected, but there is a reconnect () method worth noting, but it is not described in detail in the SDK. The code test of Android WiFi connection failed in Google search, and my heart was suddenly cold! It seems that a lot of work needs to be done to complete this function.)