title: Android Webview not working on Android 4.4
body: <p>I am developing an Android application based on a Webview.
  All is working fine on Android 4.1 but on 4.4 it throws this errors.</p>
  
  <blockquote>
    <p>01-29 11:16:03.075: E/eglCodecCommon(2179): glUtilsParamSize: unknow param 0x00000bd0
    01-29 11:16:03.095: E/eglCodecCommon(2179): <em>*</em>* ERROR unknown type 0x10037 (glSizeof,72)</p>
  </blockquote>
  
  <p>If I uncomment this line it' working but (logically) not showing anything</p>
  
  <pre><code>webview.loadUrl("file:///android_asset/html/index.html");
  </code></pre>
  
  <p>The Webview config code looks like this.</p>
  
  <pre><code>    webview = new WebView(this);
  
          webview.clearCache(true);
          webview.clearHistory();
          WebSettings webSettings = webview.getSettings();
          webSettings.setJavaScriptEnabled(true);
          webSettings.setDomStorageEnabled(true);
          webview.setWebViewClient(new WebViewClient());
          //webview.setWebChromeClient(new WebChromeClient());
          webview.addJavascriptInterface(new JavaScriptInterface(this), "Android");
  
          setContentView(webview);
  webview.loadUrl("file:///android_asset/html/index.html");
  </code></pre>
  
  <p>The HTML code is exactly</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/&gt;
  
          &lt;meta name="description" content=""&gt;
          &lt;meta name="author" content=""&gt;
  
  
          &lt;title&gt;My Web App&lt;/title&gt;
  
          &lt;script src="../js/jquery.js"&gt;&lt;/script&gt;
          &lt;script src="../js/hammer.js"&gt;&lt;/script&gt;
          &lt;script src="../js/lightboxes.js"&gt;&lt;/script&gt;
          &lt;link href="../css/main.css" rel="stylesheet"&gt;
          &lt;link href="../css/lightboxes.css" rel="stylesheet"&gt;
  
  
          &lt;script type="text/javascript"&gt;
  
              activeId = "contentOne";
              passiveId = "contentTwo";
              swiping = false;
  
              function changeElements()
              {
                  $("#" + passiveId).css("display", "none");
                  $("#" + passiveId).css("-webkit-transition", "-webkit-transform 0s linear");
                  $("#" + passiveId).css("-webkit-transform", "translate(150%,0)");
                  setTimeout(function() {
                      $("#" + passiveId).css("display", "block");
                      $("#" + passiveId).css("-webkit-transition", "-webkit-transform 0.25s ease-in-out");
                      swiping = false;
  
                  }, 10);
  
              }
  
              function nextPhrase()
              {
                  if (!swiping)
                  {
                      swiping = true;
                      $("#" + activeId).css("-webkit-transform", "translate(-101%,0)");
                      $("#" + passiveId).css("-webkit-transform", "translate(2.5%,0)");
  
  
                      var result = Android.getPhrase();
  
                      document.getElementById(passiveId + "Text").textContent = result;
                      tempId = activeId;
                      activeId = passiveId;
                      passiveId = tempId;
                      setTimeout(changeElements, 600);
                  }
  
  
                  //$("#"+passiveId).css("-webkit-transition", "-webkit-transform 0.1s linear");
                  //$("#"+passiveId).css("-webkit-transform", "translate(-100%,0)");
                  //$("#"+passiveId).css("-webkit-transition", "-webkit-transform 0.6s ease-in-out");
  
  
  
                  //document.getElementById("next").style.backgroundColor="blue"; 
              }
  
              function rel()
              {
                  document.getElementById("next").style.backgroundColor = "#FFF";
              }
  
              function changeColor(el)
              {
  
                  document.getElementById("next").style.backgroundColor = "#EEE";
              }
  
  
  
  
  
          &lt;/script&gt; 
  
      &lt;/head&gt;
  
      &lt;body&gt;
  
          &lt;div id="contentHeader"&gt;
              Never I have ever ...
          &lt;/div&gt;
          &lt;div id="container"&gt;
              &lt;div id="contentOne"&gt;
  
                  &lt;div id="contentOneText"&gt;
  
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div id="contentTwo"&gt;
  
                  &lt;div id="contentTwoText"&gt;
  
                  &lt;/div&gt;
              &lt;/div&gt;
  
          &lt;/div&gt;
          &lt;div id="headNav"&gt;
              &lt;div class="navElement" id="next" &gt;
                  &lt;div class="elName"&gt;
                      Next
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
  
          &lt;div id="proposalLightbox"&gt;sdfsdfasfasdf&lt;/div&gt;
          &lt;div id="fade"&gt;&lt;/div&gt; 
  
          &lt;script&gt;
  
  
              Hammer(document).on("dragleft", function(e) {
  
                  nextPhrase();
              });
  
  
  
              document.getElementById('next').ontouchstart = function(eve) {
  
                  nextPhrase();
                  document.getElementById("next").style.backgroundColor = "#EEE";
              }
  
              document.getElementById('next').ontouchend = function(eve) {
                  //alert()
                  document.getElementById("next").style.backgroundColor = "#FFF";
              }
              var result = Android.getPhrase();
  
              document.getElementById(activeId + "Text").textContent = result;
  
  
  
              function testEcho(par)
              {
                  alert(par);
              }
  
              function openProposeDialog(par)
              {
                  showLightbox("proposalLightbox");
              }
  
              document.getElementById('fade').ontouchstart = function(eve) {
  
                  closeLightboxes();
              }
  
  
              //nextPhrase();
          &lt;/script&gt;
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And the Java-Javascript interface is </p>
  
  <pre><code>public class JavaScriptInterface {
          Context mContext;
  
  
          JavaScriptInterface(Context c) {
              mContext = c;
          }
  
  
          public String showToast(String toast) {
              Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();
              return toast;
          }
  
          public String getPhrase() {
  
              String phrase = "";
              //phrase = dataHandler.getRandomPhrase();
              return phrase;
          }
      }
  </code></pre>
  
  <p>Thanks a lot in advance</p>