I'm using HttpClient
on my android application. Some user can have a system proxy configured on his device. How do I get the information?
From this answer I know you can do something like:
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpHost proxy = new HttpHost("someproxy", 8080);
httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
The problem is that I don't know where to find hostname of the proxy and the port.