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.


        webview = (WebView) findViewById(R.id.webview);
        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?




Other Threads

1. Android custom hardware

Hi all,

I need to create a custom phone hardware using android platform that
will use minimal functions..I don't need accelerometer, camera even
mic and loud speaker. all i need is a SIM card slot and minimal
hardware features that will accommodate a custom compiled android
platform. I need pointers on

a) where i can find help to create such a hardware. Even if it's in
PCB board with the right chipsets, that's good enough for prototyping.
b) are there any pointers on dos and don'ts on stripping down android
platform code to bare bones. minimalist version of android platform
needed, again i will not leverage apis pertaining to GPS,
Accelerometer, camera etc,

Any help will be much appreciated.



2. trying to write to file and failing

hi im just trying to save some text to a file on android and while it
works fine on the emulator "dont crash", when i try it on my phone it
crashes, what am i doing wrong? heres the code:

            File root = Environment.getExternalStorageDirectory();
            if (root.canWrite()){
                 File file = new File(root, "file.txt");
                 FileWriter writer = new FileWriter(file);
                 BufferedWriter out = new BufferedWriter(writer);
                 out.write("some data");
                 showMes("File saved.");
                 showMes("Could not save file.");
        }catch(Exception e){

i do know it crashes on " File root =
Environment.getExternalStorageDirectory(); " i just dont know why.
showMes() is just a function to make toast. thanks for any help.


3. My app crashes upon relaunch

4. Something wrong here, didn't expect com.commonsware.android.rotation.two to be resumed

5. Linkify-ed TextView non-linked text disappears on touch

6. No Phone Signal in Emulator (2.1)

7. catching both click and long click on a ListView