title: How do I pass return values from a javascript function to android?
body: <p>I want to let my <strong>android</strong> app call a function written in <strong>javascript</strong> and expect a return value from that.</p>
  
  <p>I understand that <strong>WebView.loadUrl</strong> works asynchronously, so what I am doing now is to let javascript notify my android app when it is done and pass in the return value by calling a java function using <strong>javascriptinterface</strong>.</p>
  
  <p>I wonder if there are better ways of doing this and whether anyone has noticed any message loss between javascript and android.</p>