I’m new in android development and I am trying out the WebView example in the official android site.
http://developer.android.com/guide/tutorials/views/hello-webview.html
But I do everything they say…which is pretty simple: I create the project, edit the layout file, then I add the code, etc. No problems building…but when I launch the app in the simulator I just got a black screen. It is like if the Layout is empty…like if the WebView is not created.
What am I doing wrong?
Sorry about that – that link is a bit outdated. The fixed version of this tutorial is available here:
http://developer.android.com/guide/webapps/webview.html
We should remove the old link; I’ll file a bug.
And note, the error is that
setContentViewisn’t being called.