For some reasons I have to use WebView in my Android application and part of business logic is contained in JavaScript (I run it using addJavascriptInterface()). The problem is that I can't modify the UI components of my application from object bound to the script. That's explained in the documentation:
Note: The object that is bound to your JavaScript runs in another thread and not in the thread in which it was constructed.
I'm wondering if there is some workaround for this problem?