0

I just know that :WebView.enablePlatformNotifications(); it's obsoleted now. I add this code in my Activity

    DefaultHttpClient httpClient = new DefaultHttpClient();

    HttpHost proxy = new HttpHost("X.X.X.X", portNumber); //proxy that i need 

    httpClient.getParams().setParameter(ConnRouteParams.DEFAULT_PROXY, proxy);

and I add this code:

WebView testWebView = new WebView(this);
// WebView.enablePlatformNotifications();// it's obsoleted!
testWebView.loadUrl("http://www.google.com");

The result is : my device cannot open google.com through 3g.

How can I make testWebView known the proxy I have stetted?

notree
  • 1
  • 1
  • 2

1 Answers1

-1

You should follow this links it may be helpful to you.

Community
  • 1
  • 1
Chintan Khetiya
  • 15,962
  • 9
  • 47
  • 85
  • I saw them before. As you see, the second website link is useless. thanks also the same. I am still confuse that why I can search the web by 3g. But if i change to wifi,it's ok! – notree Nov 07 '12 at 02:20
  • finally, the problem was solved . The reason is that the sim card has some design defect . So ... Thank – notree Nov 14 '12 at 05:17