[WikimediaMobile] Caching in Android / PhoneGap app

Tomasz Finc tfinc at wikimedia.org
Sat Dec 10 00:52:30 UTC 2011


On Fri, Dec 9, 2011 at 4:48 PM, Brion Vibber <bvibber at wikimedia.org> wrote:
> On Fri, Dec 9, 2011 at 4:15 PM, Brion Vibber <bvibber at wikimedia.org> wrote:
>>
>>
>> To ensure that bookmarked or 'saved' pages are consistently available,
>> either a homebrew loader cache with some smarts or something like the
>> existing URLCache should help; but it'd need to be changed to handle images
>> better etc.
>>
>> I prefer the homebrew loader cache, since it allows standard HTML security
>> separations to stay in effect (assuming PhoneGap doesn't disable them all,
>> which it might considering that the file: pages can do anything to the
>> iframe).
>
>
> Bad news: that (WebViewClient.shouldInterceptRequest) seems to only be
> available on Android 3 and later. Manually loading as with URLCache should
> work though. Sigh...

Sigh indeed. We don't have to go back too far but whatever we do has
to be Android 2.2.x and above. I double checked with Amit and he
confirmed that we shouldn't have to support anything older then that.

--tomasz



More information about the Mobile-l mailing list