Aleksander Kmetec describes one method: http://lexandera.com/2009/01/extracting-html-from-a-webview/
Register a custom JavaScript interface, install a custom WebViewClient that overrides onPageFinished, and therein inject a piece of JavaScript code into the page that calls back into your interface. On Sep 8, 10:47 pm, Kristopher Micinski <[email protected]> wrote: > Hi all, > > For a while now I have been trying to communicate with the android > browser. Let me describe my situation: > I need to, when a user clicks views a page (downloads a page, > actually!), be able to get the HTML content of this page, or at the > very least, the URL of this page. I then need my app to go and do some > work with the contents of this page. > > I have tried quite a bit of solutions. I tried storing info from the > page into a cookie, but you can't access the cookie store from an > external application (I don't think.) My app runs as a separate > application with a service and a thread that handles a daemon which > "scavenges" data from a number of different sources. > > The short version of this: > We need to be able to "harvest" data from some sites a user visits on > the browser. I need this to be possible, and I've heard people say > things like "oh, just run a local proxy," but that seems a bit much, > and I'm not sure that's even possible on the Android. > > Any ideas would be appreciated, > Kris -- 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

