私はちょうどそれを知っています:WebView.enablePlatformNotifications(); 現在は廃止されています。このコードをアクティビティに追加します
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpHost proxy = new HttpHost("X.X.X.X", portNumber); //proxy that i need
httpClient.getParams().setParameter(ConnRouteParams.DEFAULT_PROXY, proxy);
そして、私はこのコードを追加します:
WebView testWebView = new WebView(this);
// WebView.enablePlatformNotifications();// it's obsoleted!
testWebView.loadUrl("http://www.google.com");
結果: 私のデバイスは 3g 経由で google.com を開くことができません。
設定したプロキシを testWebView に知らせるにはどうすればよいですか?