I'm writing an Android app that displays web pages in a WebView. some of them include IFrames. I don't have control over which pages will be displayed.
Part of what the app does is inject javascript code into the pages from my Java code (adding a JavaScript interface and scripts). I can do it with the main page pretty easily but it looks like a more challenging task to do it in an IFrame.
Looks like the onPageFinished event of the WebViewClient class (the appropriate place to inject scripts) is only fired for the main page, not the IFrames within it.
Any ideas as to how to do this?