How to set a Javascript-HTML variable from a Android code
<p>I am trying to set the value of a global variable from Android code.</p>

<pre><code>               mWebView.loadUrl("javascript:(function() { " +  
                       "loginID = '"+nicu_app.urlSelected+"'; " +  
                       "})()");  
</code></pre>

<p>but when I load the webpage in a webview and check to see if this variable has been set by the Android code, I don't see any positive results.</p>

<p>Any help will be appreciated.</p>

<p>Thanks,
Sana.</p>
