Hi Mark,

On May 26, 10:23 pm, Mark Murphy <[email protected]> wrote:
> Rather than pushing, you could try pulling:
>
> webView.addJavascriptInterface("paraz", new TheMiguelParazObject());
> webView.loadUrl("file:///android_asset/page.html");
>
> TheMiguelParazObject has some method (e.g., initScript()) that returns
> your desired Javascript ("var x=1;");
>
> Your file has a <script> element up front that calls eval() on the
> result of paraz.initScript().

That's the catch - I want to be able to do this without modifying the
HTML file, since I will be loading arbitrary files. I don't think it's
possible with the SDK, but requires WebKit modifications.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to