问题描述
这是一个模糊的,也可能是硬件相关错误。
This is an obscure, possibly hardware dependent error.
我有一个web视图正试图以显示Twitter的饲料是这样的: http://twitter.com/HP
I have a webview that is trying to display a twitter feed like this: http://twitter.com/HP
视图工作正常,在Droid 2的,但没有对Droid和Droid的X.
The view works fine on a Droid 2, but fails on Droid and Droid X.
相反,它只是显示了Twitter的标志和悬挂,直到永远。
Instead of displaying the page, it just displays the twitter logo and hangs forever.
有关设备:
所有正在运行相同的软件,而Android 2.2。然而,它们运行的是Android 2.2的不同口味。Droid X的:2.2.1Droid的1:2.2.2Droid 2的:2.2
All running the same software, and Android 2.2. However, they are running different flavors of Android 2.2.Droid X: 2.2.1Droid 1: 2.2.2Droid 2: 2.2
看来,Verizon公司必须已经添加了一个错误,还是他们的最新版本2.2修正了。
It seems that Verizon must have added a bug or fixed a bug in their later versions of 2.2.
推荐答案
这就是答案:
补充一点:
webView.getSettings().setDomStorageEnabled(true);
(加上使用$ C $从这里C:<一href="http://www.$c$clark.com/2010/09/13/backwards-compatibility-in-android-using-reflection/">http://www.$c$clark.com/2010/09/13/backwards-compatibility-in-android-using-reflection/)
(plus use code from here:http://www.codelark.com/2010/09/13/backwards-compatibility-in-android-using-reflection/)
我不知道为什么,但如果你看到这样的错误信息:Web控制台:未捕获的类型错误:无法读取的未定义的属性'个人资料'然后尝试添加该设置。
I have no idea why, but if you ever see an error message like this:Web Console: Uncaught TypeError: Cannot read property 'profile' of undefined then try adding this setting.
这篇关于web视图对某些机器人显示了Twitter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!