title: Undefined value when passing data from android to javascript
body: <p>I'm using this code but the value said "undefined" can anyone point me the problem?</p>
  
  <p>this is my java class codes</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(com.frux.web.R.layout.activity_main);
      String value = "Isiah";
      WebView web = (WebView) findViewById(R.id.web1);
      web.getSettings().setJavaScriptEnabled(true);
      web.loadUrl("file:///android_asset/www/webpage");
      web.loadUrl("javascript:setValue("+ value +")");
  
  
  }
  </code></pre>
  
  <p>and this is my webpage codes</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  Whats your Name?
  &lt;input id="name" value="" /&gt;
  &lt;button onclick = "setValue()"&gt;Submit&lt;/button&gt;
  
  &lt;script type="text/javascript"&gt; 
  function setValue(value){
  var myValue = value;
  document.getElementById("name").value = myValue;
  
  }
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>any thoughts will be highly appreciated</p>