[android-developers] javascript in webview to java?

2011-05-11 Thread Droid
I want to try processing text in a normal java activity from the text output of a javascript library in webview. BUT how? Suppose i could write to a file and then read but that is cumbersome. -- You received this message because you are subscribed to the Google Groups Android Developers group.

Re: [android-developers] javascript in webview to java?

2011-05-11 Thread Kostya Vasilyev
You can make a Java object accessible to JavaScript inside the WebView: http://developer.android.com/reference/android/webkit/WebView.html#addJavascriptInterface(java.lang.Object, java.lang.String) -- Kostya 11.05.2011 18:17, Droid пишет: I want to try processing text in a normal java