i'm not sure i follow you. why would webkit cache data loads, when they're coming from local strings anyway?
say some more about what you're trying to achieve and maybe i can help out. hth j >This really stinks (not caching data loads). Is it possible to code it >in? > >On Sep 2, 4:07 pm, Jason Proctor <[email protected]> >wrote: >> the loadData() methods don't enter anything into the history and >> rather more awkwardly don't set the current URL. so if you call >> loadData() and then getUrl() you'll find that they don't match up. >> >> it's not really clear what WebKit is supposed to do in these >> circumstances, but i think as a minimum it might want to insist on a >> base URL for string loads (like other versions of embedded WebKit do) >> and then put that URL in the current URL and history. >> >> AFAIK the WebKitcacheis persistent across Activity lifecycles. if >> you find that a page load is taking a long time however you can do >> what i do and put content: URLs to infrequently changed resources >> (like external Javascript etc) so they come from the APK instead of >> across the network. >> >> there's some extra hassle associated with content: URLs accessed from >> WebKit, but eventually it worked for me. search the archives for more >> stuff. >> >> hth >> J >> >> >> >> >> >> >1. I load HTML data intoWebViewwith loadDataWithBaseURL >> >2. Do it one more time >> >3. Execute the following code and instead of going back to the 1st >> >page - whole app exits. What am I doing wrong here? >> >> > public boolean onKeyDown(final int keyCode, final KeyEvent event) >> >{ >> > if (keyCode == KeyEvent.KEYCODE_BACK && this.browser.canGoBack >> >()) { >> > this.browser.goBack(); >> > return true; >> > } >> > return super.onKeyDown(keyCode, event); >> > } >> >> >Also - is it possible forWebViewcacheto survive Activity#onStop? >> >Basically - if I close app and reopen - I wantWebViewto display last >> >data that was loaded, currently - I'll get a blank screen and then >> >have to reload same data again >> >> -- >> jason.vp.engineering.particle > -- jason.vp.engineering.particle --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

