title: Use proxy in webview in android
body: <p>I know we can set proxy to webview by using reflection from <a href="https://stackoverflow.com/questions/4488338/webview-android-proxy">here</a>. But it doesn't work normally in 4.2.2</p>
  
  <p>I use whatismyip.com to verify whether I am really connected to proxy. And I found that I must rotate the screen (run onCreate the second time) in order to connect to the proxy. So, what is the problem. Thanks</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      WebView wv = (WebView) findViewById(R.id.webView1);
      wv.setWebViewClient(new WebViewClient());
      Util.setProxyICSPlus(wv, "74.221.211.12", 8089, null);
      wv.loadUrl("http://www.whatismyip.com/");
  }
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/4488338/webview-android-proxy">WebView android proxy</a></p>