I am making a broswer type app i want to set the proxy only for this browser
I tried to modify global proxy by using this code but it does not work
System.getProperties().put("http.proxyHost", "someProxyURL");
System.getProperties().put("http.proxyPort", "someProxyPort");
System.getProperties().put("http.proxyUser", "someUserName");
System.getProperties().put("http.proxyPassword", "somePassword");
System.getProperties().put("http.proxySet", "true");
So I looked at proxySelector
class and I really don't understand how to set the proxy for my brower
I know there is a hidden class in ProxySelector
in com.android.settings/.ProxySelector
But I have to manually entered the proxy.
Is there any way so that i can configure proxy only for mybrowser(Just a Webview) ??
Please Help. Thanks in Advance!!!