Android: simple webview code. ERR: Unable to start Activity?

Why do you have setContentView(R.layout. Webview)? You already call setContentView two lines before And do you have the android.permission.

INTERNET permission in your AndroidManifest. Xml? Also, you should attach the logcat output as that'll probably give you a callstack pointing you in the general direction of the problem.

Why do you have setContentView(R.layout. Webview);? You already call setContentView two lines before.

And do you have the android.permission. INTERNET permission in your AndroidManifest. Xml?

Also, you should attach the logcat output as that'll probably give you a callstack pointing you in the general direction of the problem.

I 've : I commented this line: //setContentView(R.layout. Main); in log cat :FATEL EXCEPTION in main java lang runtime error unable to start activity component info(..... – vnshetty Mar 2 at 6:43 update your question with exact log dump – Samuh Mar 2 at 6:49 assuming windows envt: select(shift+cursor keys), copy(Ctrl+c) and paste(ctrl+v). – Samuh Mar 2 at 6:55.

You shouldn't call the setContentView function twice. I am guessing your onCreate method should look like: public void onCreate(Bundle savedInstanceState) { super. OnCreate(savedInstanceState); setContentView(R.layout.

Webview); mWebView = (WebView) findViewById(R.id. WebView1); mWebView. LoadUrl("http://www.google.com"); }.

Yeah.. you are right... – vnshetty Mar 2 at 10:12.

I am suggesting you to do it again create a simple project. Paste the following code your main. Xml android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> and in the manifest file put the line just before ending the and run.

I think nothing wrong with it. Remove your second setContView...

Go to this link you can easily create your webview application..... developer.android.com/resources/tutorial... add this in between your setcontentView and loadurl method mWebView.getSettings(). SetJavaScriptEnabled(true).

And do you have the android.permission. INTERNET permission in your AndroidManifest. Also, you should attach the logcat output as that'll probably give you a callstack pointing you in the general direction of the problem.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions