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. Get unique ID of phone - Settings.Secure.ANDROID_ID not working on N1?

Odd - I posted this message yesterday and got sent a copy, but it
doesn't seem to have shown up in the group... Here it is again.


--------

This seems to be a bit of a vexed issue: see

2. Hide camera preview on augmented reality app

Hi all,

I want to develop an augmented reality application, but I'm having
some trouble in the first steps. The first I want to do is to get a
frame with the onPreviewFrame callback, process it, and then draw it
in the screen. Here I want to hide the camera preview, I mean, I don't
want to draw it, but I can't manage to do it. I've been reading some
threads where it's said that simply don't doing
"SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS" you'll fix it. In the
emulator does work, but in the real device doesn't and the program
crash.

The second question is: Is there a way to overlay a GLSurfaceView on
top of the CameraPreview before the API level 5? I've tried some
methods like GLSurfaceView.bringToFront(), but none of them works. I
would like to do it for android 1.5. Anyway I don't have (yet) a
device with 2.0 or later, and I also don't know if the
"setZOrderMediaOverlay" method really works in real devices.

Many thanks for your time.

-- 

3. How to get Linux version and manufacturer name

4. MapView layout behaves differently depending on order?

5. Problems with ViewGroup.addView()

6. Passing Command line arguments to an android application

7. Solution to why list item text is invisible in AlertDialog