Android - html from android_assets in WebView, CSS not loading in ICS

I am writing a small application that basically loads its contents 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 problems. I recently got a Galaxy Nexus, but CSS doesn't load in ICS.

I read something that suggested turning on hardware acceleration, but does nothing. I now have a complete loss. Javascript seems to load fine, so when combined with working well on 2.3, it doesn't offer the way I load CSS.

Has anyone seen something like this? The application is unusable without using CSS.

Thanks in advance.

Edit: Ideally, I need this to work on all versions of Android from 2.2+. Not sure if that matters, but I thought it might be important.

+6
source share
1 answer

Found a question! It turns out that in the browser for ICS and, presumably, Honeycomb, there is a rather big error based on the test. In logcat, I get the following error: Unknown chrome error: -6. Deleting the request fixes the problem (although it undermines my functionality). There is an error message for him if someone else has the same problems.

+7
source

Source: https://habr.com/ru/post/907658/


All Articles