My understanding is that I can store stuff locally with gears. But this part is possible with Android in a nicer way. I was looking for the actual "download a webpage" mechanism.
Cheers, Mariano On Dec 29, 2008, at 1:02 AM, Eric wrote: > > Have u hear of google gear? which is already integrated into > Android...... > If you use gear's features, I believe you can do what you are after. > (but don't ask me how because I don't know.) > > Cheers > Eric > Portable Electronics Ltd > www.hdmp4.com > > On Dec 28, 2:18 am, Mariano Kamp <mariano.k...@gmail.com> wrote: >> Hi, >> >> I was wondering what would be a good way to download a webpage for >> offline reading? >> >> I first thought about downloading the html source, grep it for the >> image tag's soure attribute and download the image. After rewriting >> the image tag in a way that it reffers to the local file and storing >> the html and the image content locally it should be possible to >> display the webpage from the local filesystem. >> But it could be a PITA to find all the image tags, would replicate >> browser functionality (parser) and wouldn't take care of images that >> are referenced in the css or set by Javascript. >> >> WebView offers a capturePicture() method. But even if I would find >> a way to easily store and retrieve the images, I can't use the zoom >> functionality of WebView anymore as well as the care for orientation >> changes and of course clicking on the links wouldn't be possible >> either. >> >> It seems that it could be possible to download the source, hand it >> to WebView and capture all requests for external resources, so that >> they can be downloaded and stored locally. So when later on loading >> the locally stored html the events could be overridden again and the >> images could be loaded locally. >> >> Does this make sense? Is that possible? Can WebView load/parse/ >> (render) a webpage when not displayed? Did anybody do this >> successfully or is this to much off the beaten (and tested) path? >> >> Cheers, >> Mariano > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---