I used the webview in the application. When I test the application on the galaxy s3 ICS(4.0.3), it works well. But the application doesn't work well on the galaxy s4 JellyBean(4.3). It also works well on Android version 4.1.
I would like to know that does the webview depend on the android version? If the webview depend on os version, how can I do os compatibility?
EDIT:
String webUrl = "javascript:callSizeChange('"+value+"')";
webview.loadUrl(webUrl);
The page is
<div id="body">
<div id="text" class="initSize">
<script type="text/javascript">writeText();</script>
</div>
</div>
The javascript is
function callSizeChange(n) {
$textSize=(arguments.length>0)?n:0;
doSizeChange($textSize);
}
function writeText() {
$value=getBodyContent();
var val=$value||'<div class="loading"></div>';
document.getElementById("text").innerHTML=val;
}