如何在 android 中取消设置 http.proxy
How to unset http.proxy in android
我们可以通过
设置系统代理
System.setProperty("http.proxyHost", host);
System.setProperty("http.proxyPort", port);
如何取消系统代理?
您可以使用clearProperty
System.clearProperty("http.proxyHost");
我们可以通过
设置系统代理System.setProperty("http.proxyHost", host);
System.setProperty("http.proxyPort", port);
如何取消系统代理?
您可以使用clearProperty
System.clearProperty("http.proxyHost");