h3n
h3n

Reputation: 5248

phonegap: Accessing Android Local Images from Hosted Web Application

Is it possible that our hosted web application(wrapped inside a Phonegap App) access local files from device data?

something like this:

<img src="storage\data\com.phonegap.myapp\img\sample.jpg" />

So that when the users open the mobile app, the images will be retrieved from the device storage.

Upvotes: 2

Views: 859

Answers (1)

Sagar Chavan
Sagar Chavan

Reputation: 525

window.resolveLocalFileSystemURL(imageURI, function(fileEntry) {
fileEntry.file(function(fileObj) {

newimageURI = fileObj.fullPath;
      alert(newimageURI);

});
});

I think it will help you

Upvotes: 4

Related Questions