I am not able to connect to Internet through application code even after setting proxy in emulator
<p>I am only able to connect internet through emulator browser. I am not able to connect to Internet through application code even after setting proxy in emulator and also inserting values to system table. It is throwing unknown host exception. I tried with one more option that setting proxy in application Run Configuration. But it is throwing Authentication scheme ntlm not supported error. I have given Internet permission in manifest also. Please let me know some solution for connecting Internet through code. </p>

<p>Code</p>

<pre><code>public class WebActivity extends Activity {

    /** Called when the activity is first created. */
    WebView mWebView;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        mWebView = (WebView) findViewById(R.id.webView1);
        mWebView.getSettings().setJavaScriptEnabled(true);
        mWebView.loadUrl("google.com";);
    }
}
</code></pre>

<p>Exception thrown</p>

<pre><code>02-04 12:33:23.230: ERROR/CheckinTask(177): Checkin failed: https://android.clients.google.com/checkin (request #0)
02-04 12:33:23.230: ERROR/CheckinTask(177): org.apache.http.conn.ConnectTimeoutException: Connect to /209.85.153.100:443 timed out
02-04 12:33:23.230: ERROR/CheckinTask(177):     at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:121)
</code></pre>
