vendredi 28 mars 2014

how to save downloaded files to external memory on android

Hi there,



I know it's more of phonegap related but hence there is no harm in trying.



Does anyone here know article/example/guide on how to save the downloaded file (using phonegap's filetransfer.download()) to external storage on android ?



Most of article that i came accross said that "LocalFileSystem.PERSISTENT,0 , .." will by default save your file to external storage (sd card) if the external storage exist otherwise it will write to the device internal storage.



I've tried to verify this and that is not actually happens as even thought my external storage is mounted and empty, phonegap still write all the files to device internal storage.





Regards,




Aucun commentaire:

Enregistrer un commentaire