javascript get return value from java with android webview

view full story

http://stackoverflow.com – I can searched many articles said how to get return value from javascript with android webview, but no any information said get return value from java. You may think it is very simple, many articles said how to export java method to webview... Yes, I had tried, but only succeeded with interger/boolean/float type, it will failed with String type. I cannot export a java method that returned type is String, otherwise the javascript will get a undefined return value. tester: Window, use emulator: API-8, 2.2 (HowTos)