How to return a Value from a Javscript Function Back to Android
<p>I have gone through the previous examples provided for the same question but was not able to find a solution yet.</p>

<p>Currently i am using loadURL function  to call a javascript method.
In the javascript method i want to return a Value say "integer" back to the caller function.</p>

<p>I reffered the below link provided for the answer and it was useful in half way.
<a href="http://stackoverflow.com/questions/8982570/pass-and-return-the-values-from-javascript-and-android-and-use-as-a-phone-gap-pl">Pass and return the values from javascript and android and use as a phone gap plugin</a></p>

<p>Here from javascript it is calling an Android function. 
What i really want is a synchronous return from the javascript function to the caller Android function. </p>

<p>Is there any way to return a Value from Javascript?</p>
