[android-developers] understanding webview# addjavascriptinterface working

2012-06-10 Thread Akshat Jain
Hello Android Developers. I have a question and would like to understand it in depth. I know that to interact from Javascript to Java you have to inject a Java object using the addjavascriptInterface method in webview. Here is the problem I am facing. 1. I register a java object using AddJavasc

[android-developers] understanding WebView#addjavascriptInterface

2012-06-10 Thread Akshat Jain
I am facing some issues while interacting with Javascript code from Java. the workflow we have is: 1. Add a JavascriptInterface object in my JS. 2. Add a few more Javascripts using webview.loadUrl("javascript:XXX"); 3. Firing an event to inform that our Javascript has been loaded and is ready