incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Maj <>
Subject Re: Changes to requesting a PERSISTENT file system in Cordova-Android
Date Wed, 22 Feb 2012 18:09:09 GMT
Joe and I had a discussion about this as I was getting cordova-js shimmed
into the Android implementation. The /sdcard location is not persistent on
Android - you can take the SD card out at any time.

We ended up using internal storage as the way to go -
/data/data/<package>/ as the persistent storage (can't get wiped) and
/data/data/<package>/cache as the temporary storage. The ../cache path can
be cleared out by going into Settings -> Applications -> Your App -> Clear

In hindsight I really should have posted about this switch on the mailing
list - my apologies for that.

I guess it's as good a time as any to discuss the switch and where each of
TEMPORARY and PERSISTENT locations should go to?

On 12-02-22 9:40 AM, "Simon MacDonald" <> wrote:

>I've been reading up on all the code changes as it seems like everything
>different after four days without internet. One of the things that I
>noticed is that the command:
>    window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, onSuccess,
>Now returns the path "/data/data/{app package name}". In the previous
>release it returned "/sdcard" or whatever the path of the mounted external
>storage is. So I was just wondering what the rational behind the change
>and are we worried that everyone who's written an Android app
>using window.requestFileSystem() will suddenly find their root path has
>Simon Mac Donald

View raw message