title: "Uncaught TypeError: window.HTMLOUT.showHTML is not a function"
body: <p>I am trying to inject JavaScript for reading on specific value while loading <code>webView</code>.</p>
  
  <p>These are the properties i used for my <code>webView</code>.</p>
  
  <pre><code>    webView.getSettings().setBuiltInZoomControls(true);
      webView.getSettings().setCacheMode(2);
      webView.getSettings().setDomStorageEnabled(true);
      webView.clearHistory();
      webView.clearCache(true);
      webView.getSettings().setJavaScriptEnabled(true);
      webView.getSettings().setSupportZoom(true);
      webView.getSettings().setUseWideViewPort(false);
      webView.getSettings().setLoadWithOverviewMode(false);
      webView.addJavascriptInterface(new MyJavaScriptInterface(), "HTMLOUT");
  </code></pre>
  
  <p>and i am injecting javacript in my <code>onPageFInished()</code> method.</p>
  
  <pre><code>        @Override
          public void onPageFinished(final WebView view, final String url) {
              webView.post(new Runnable() {
                  @Override
                  public void run() {
                      webView.loadUrl("javascript:window.HTMLOUT.showHTML('&lt;head&gt;'+document.getElementsByTagName('input')[0].value+'&lt;/head&gt;');");   
                  }
              });
              super.onPageFinished(view, url);
          }
  </code></pre>
  
  <p>Below code is <code>MyJavaScriptInterface</code>.</p>
  
  <pre><code>public  class MyJavaScriptInterface{
  
      @JavascriptInterface
      public void showHTML(String html_data) {
          if(html_data.contains("response_code")){
              Log.e(TAG, " ======&gt;  HTML Data : "+  html_data);
              new MakeQueryPayment().execute();
          }        
      }
  }
  </code></pre>
  
  <p>Error i captured from the Logcat.</p>
  
  <pre><code>01-08 17:56:43.701 I/chromium(27026): [INFO:CONSOLE(1)] "Uncaught TypeError: window.HTMLOUT.showHTML is not a function", source:  (1)
  </code></pre>
  
  <p>I m facing this problem only in <strong>Samsung Galaxy Tab A</strong>, Model Number is <strong>SM-T550</strong> , Android Version is <strong>5.0.2</strong>. In other devices which we have it's working fine. Can any one please help me out from this.
  Thanks in advance.</p>