evaluatejavascript
is available API-level 19 and later. It has a callback. I know that I can use loadUrl
instead of evaluatejavascript
for before API-level 19. But how can I handle return value from script? Is there a solution for this?
String script = "function(){ return "abc"}()";
mywebview.loadUrl(script);