title: Android convert javascript variables in webview to java variable
body: <p>class</p>
  
  <pre><code>class MyJavaScriptInterface
  {
      @JavascriptInterface
      public void processHTML(String html)
      {
      }
  }
  </code></pre>
  
  <p>onCreate()</p>
  
  <pre><code>WebView webview = (WebView) findViewById(R.id.webView1);
  webview.getSettings().setJavaScriptEnabled(true);
  webview.addJavascriptInterface(new MyJavaScriptInterface(), "HTMLOUT");    
  webview.loadUrl("javascript:var elementjs = window.HTMLOUT.processHTML(document.getElementsByName('name')[0].src);");
  </code></pre>
  
  <p>I want to get 'elementjs' in java. </p>
  
  <pre><code>String element = elementjs;//like this
  </code></pre>
  
  <p>How get javascript variable in java?</p>