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 *

Most Popular Posts

How to use HTML5 Page Visibility API

Posted on 2 years ago

Bhumi

How to use MySQL SHOW Command

Posted on 6 years ago

Bhumi

How to use Transient API in WordPress

Posted on 3 years ago

Bhumi

How to set Module Position in Joomla

Posted on 5 years ago

Bhumi

MySQL coalesce() function

Posted on 6 years ago

Bhumi

Overview of ECMAScript 6 new Features

Updated 18 years ago

Bhumi

Getting started with Amazon Web Services

Updated 18 years ago

Bhumi

Facade implementation in Laravel

Updated 18 years ago

Bhumi

The Reader’s Poll – June 2015

Posted on 2 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 3 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 4 years ago

Bhumi