Back to Top

How to Save File in SD card using PhoneGap?

Save Image/File into sdcard in Android using Phonegap

Today I am going to explain about how to save an external image into your device’s SDCard in android using PhoneGap. PhoneGap is a framework for building mobile apps using HTML, JavaScript and CSS and known as Cordova.

Mostly we call web service and pass data as JSON format and we can easily fetch data for android application but sometimes when you fetching image from server it takes much time to load and even if no internet, image can’t be load.

Comments (1)

  1. This will only save file to phone’s internal storage not in physical sd card.

    window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, fileSystemSuccess, fileSystemFail);

    will give a filesystem whose fullPath = “/”. But if you check the directory entry of this directoryEntry it will display the content of phone’s internal storage, not the content of the sd card.

    I’m wondering what phone did you test this on. I’ve tried it on 2 samsung and 1 alcatel and it behaved as I described it above.

    I am still looking for a way to make this work though.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

MySQL FLUSH Commands

Posted on 7 years ago


How to use jQuery UI tabs in a WordPress?

Posted on 5 years ago


How BlockChain and Ethereum works?

Posted on 1 year ago