How to use Android proxy library

I am new to android and I want to use android proxy library to get proxy details and change proxy settings. I tried to get the current proxy configuration and look here . There is a class called "ProxyConfiguration", but "APL.getCurrentProxyConfiguration (uri)" returns an instance of "Proxy". And in the APL there is no class called "ProxyConfiguration".

Where am I mistaken? Can someone put sample code to use APL?

+4
source share
1 answer

The APL.getCurrentProxyConfiguration method returns a Proxy instance, which is the standard android class for storing proxy information.

http://developer.android.com/reference/java/net/Proxy.html

If you need more information about Wi-Fi AP and proxies, you can call the getWiFiAPConfiguration method, which returns a WiFiApConfig instance (defined in the APL source code).

+1
source

Source: https://habr.com/ru/post/1623090/


All Articles