Reputation: 39
I'm new in android and I want to use android proxy library to get information about proxy details, and change proxy settings. I tried to get current proxy configuration and look here. There is a class which is called "ProxyConfiguration" but "APL.getCurrentProxyConfiguration(uri)" returns "Proxy" instance. And there is no class named "ProxyConfiguration" in APL.
Where I'm wrong? Can anyone put here a sample code to using APL?
Upvotes: 4
Views: 1543
Reputation: 1052
The APL.getCurrentProxyConfiguration method returns a Proxy instance which is the standard android class to store the proxy information.
http://developer.android.com/reference/java/net/Proxy.html
If you want some more information on the Wi-Fi AP and the proxy you can call the getWiFiAPConfiguration method which returns a WiFiApConfig instance (defined into the APL source code).
Upvotes: 1