1

Does every app use the value defined in the Settings.System.HTTP_PROXY or just the web browser?

Mithun Sreedharan
  • 49,883
  • 70
  • 181
  • 236

1 Answers1

2

For Android devices with API version >= 11 (3.x or greater), the developers should use the following procedure to get the current proxy settings:

ProxySelector defaultProxySelector = ProxySelector.getDefault();
List<Proxy> proxyList = defaultProxySelector.select("http://www.google.it");

It's explained here.

On devices with API version < 11, there isn't an official support, so we officially have a problem. But stay tuned here, I'm trying to find out a solution also for older and forgotten (by Google) devices.

Community
  • 1
  • 1
lechuckcaptain
  • 1,032
  • 1
  • 9
  • 25