I meet web view problem. It cannot connect to network via webview.

by charles » Fri, 04 Sep 2009 01:59:44 GMT


Sponsored Links
 Hi all,

I can use browser to open the  http://www.google.com , but I cannot use
webview to open google page.

source code below.

        setContentView(R.layout.main);

        webview = (WebView) findViewById(R.id.webview);
        webview.getSettings().setJavaScriptEnabled(true);
        webview.loadUrl(" http://www.google.com ")

In AndroidManifest.xml, I also add permission. You can look below.

       <uses-permission android:name="android.permission.INTERNET" />

I cannot connect web via webvie.

Perhaps, this issue is proxy problem.

Can you give me some suggest to solve this issue?

Thanks,

Charles

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. widget cell 2*1, width is 160 but takes 3*1 cells

Hi all,

I want to create a widget takes 2*1 cells. I set the width to 160 and
height to 100. Then it takes 3*2 cells. Why?

I change it to 80 and 50, then it takes 2*1 cells.


--~--~---------~--~----~------------~-------~--~----~

2. How to reference native android drawable in the layout XML ?

Dear all android developers,

How to reference native android drawable in the layout XML ?

Regards,
Agus.

--~--~---------~--~----~------------~-------~--~----~

3. Emulator Listening Socket Fail

4. "We want to feature your app"

5. ppp daemon not startin

6. UnknowHost when connected in WIFI

7. Kernel build error on Mac OS