How can I set ProxySettings and ProxyProperties on Android Wi-Fi connection using Java?
问题 How can I set ProxySettings and ProxyProperties on an Android Wi-Fi connection using Java (programatically)? As ipAssignment, linkProperties, ProxySettings and ProxyProperties are hidden fields within WifiConfiguration on Android 3.1 and up, I need to be able to enum the class and use the fields. Following the code sample using the link below, I can set a static IP address, gateway and DNS for a particular Wi-Fi connection, but I also need to set Wificonfiguration.ProxySettings.STATIC and