Hi,

I am using the following code to display a WebView in my Android 2.x
application. However this does not display anything on screen.

public class WebViewTest extends Activity {
        WebView webview;
        String TAG = "WebViewTest";

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        try {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main);

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

        } catch (Exception e) {
                Log.w("TAG", e.getMessage());
        }
    }
}

Any ideas?

Thanks,
Saurabh

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to