1

Android Webview NullPointerException

view story
linux-howto

http://stackoverflow.com – What are possible error when I encountered the NullPointerException for Webview: WebView webView; webView = (WebView) findViewById(R.id.webView3); webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl("..."); This is my webview3.xml: <?xml version="1.0" encoding="utf-8"?> <WebView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/webView3" android:layout_width="fill_parent" android:layout_height="fill_parent" /> NPE is on line webView.getSettings().setJavaScriptEnabled(true); (HowTos)