"你好,的WebView"例你好、QUOT、WebView

由网友(何必°自欺欺人)分享简介:我是新的android开发,我试图在Android官方网站的web视图的例子。I'm new in android development and I am trying out the WebView example in the official android site.http://developer.and...

我是新的android开发,我试图在Android官方网站的web视图的例子。

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/意见/ HELLO-webview.html

不过,我做的一切,他们说...这是pretty的简单:我创建项目,编辑布局文件,然后我添加了code等,没有问题的建筑......但是当我推出模拟器我刚刚得到一个黑色的屏幕的应用程序。这就像如果布局是空的......就像如果没有创建web视图。

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.

我是什么做错了吗?

推荐答案

对此深感抱歉&ndash的;该链接是一个有点过时。本教程的固定的版本可以在这里找到:

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

我们应该删除旧的链接;我将提交一个bug。

We should remove the old link; I'll file a bug.

和说明,错误是的setContentView 不会被调用。

And note, the error is that setContentView isn't being called.

阅读全文

相关推荐

最新文章