web视图对某些机器人显示了Twitter [英] Webview not displaying Twitter on some Droids

查看:118
本文介绍了web视图对某些机器人显示了Twitter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个模糊的,也可能是硬件相关错误。

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.1 Droid的1:2.2.2 Droid 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.1 Droid 1: 2.2.2 Droid 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆