I have an application which needs to connect to net. I need some advice when dealing with proxy Connections. Currently the user sets the proxy settings and hence I use the entered information to connect. Is there a better way to deal with such situations.
I mean something like chrome which opens system's proxy settings and then uses them. How to do it and retrieve those values? Any other Ideal method?
Secondly, currently I am checking if there is a proxy set or not. If yes, I am using url.openConnection(proxy);
IF not then plain url.openConnection();
Is there a more cleaner way of doing it? where system automatically connects with proxy set.