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 Data. 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" <[email protected]> wrote: >Hey, > >I've been reading up on all the code changes as it seems like everything >is >different after four days without internet. One of the things that I >noticed is that the command: > > window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, onSuccess, >onError); > >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 >was >and are we worried that everyone who's written an Android app >using window.requestFileSystem() will suddenly find their root path has >changed? > >Simon Mac Donald >http://hi.im/simonmacdonald
