Android的 - HTML代码中的WebView android_assets,CSS不加载ICS [英] Android - html from android_assets in WebView, CSS not loading in ICS

查看:349
本文介绍了Android的 - HTML代码中的WebView android_assets,CSS不加载ICS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在写,基本上从加载本地存储HTML和CSS的内容到的WebView一个小应用程序。我最初开始这个,当我不得不运行Android 2.3的设备,也没有问题。我最近买了一个Galaxy Nexus的,但CSS没有出现在ICS加载。

I've been writing a small app that basically loads its content from locally stored HTML and CSS into a WebView. I initially started this when I had a device running Android 2.3 and had no issues. I recently got a Galaxy Nexus but the CSS doesn't appear to load in ICS.

我读一些建议支持硬件加速,将有助于但不起任何作用。我现在是在一个完全丧失。似乎的JavaScript加载精做,它在2.3的工作很好地结合起来,表明这不是我加载CSS的方式。

I read something that suggested enabling hardware acceleration would help but it does nothing. I'm now at a complete loss. Javascript seems to load fine so, combined with it working well on 2.3, suggests it's not the way I'm loading the CSS.

有没有人见过类似的东西吗?该应用程序不可用没有一些触摸友好的CSS。

Has anybody seen anything similar? The app is unusable without some touch-friendly CSS.

先谢谢了。

编辑:理想情况下,我需要这个到Android的所有版本从2.2+努力。如果它的确与众不同,但我想这可能是有关不知道。

Ideally, I need this to work on all versions of android from 2.2+. Not sure if it makes a difference but I thought it might be relevant.

推荐答案

发现的问题!事实证明,有一个在浏览器基于测试ICS和presumably蜂窝相当大的错误。在logcat的我得到以下错误:未知错误铬:-6。取出查询字符串解决问题(虽然搞砸了我的功能)。还有是它的一个bug报告这里其他人是否具有相同的问题。

Found the issue! It turns out that there is a rather big bug in the browser for ICS and presumably Honeycomb based on a test. In the logcat I get the following error: Unknown chromium error: -6. Removing the querystring solves the issue (although screws up my functionality). There is a bug report for it here if anyone else is having the same issues.

这篇关于Android的 - HTML代码中的WebView android_assets,CSS不加载ICS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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