vishalrajpal / phonegap-zipfile-plugin Goto Github PK
View Code? Open in Web Editor NEWAndroin plugin to extract Zip File
Androin plugin to extract Zip File
Android Plugin To Extract Zip Files The Plugin allows you to extract Zip Files located at the SD Card of the device. Adding the Plugin to your project Using this plugin requires Android PhoneGap. To install the plugin, move www/ZipPlugin.js to your project's www folder and include a reference to it in your html file after phonegap.js. <script type="text/javascript" charset="utf-8" src="phonegap.js"></script> <script type="text/javascript" charset="utf-8" src="ZipPlugin.js"></script> Create a directory within your project called "src/com/phonegap/plugin/ExtractZipFile" and move ExtractZipFilePlugin.java into it. In your res/xml/plugins.xml file add the following line: <plugin name="ZipPlugin" value="com.phonegap.plugin.ExtractZipFile.ExtractZipFilePlugin" /> Using the plugin Sample Usage The file must be located at the same directory structure in the SD Card. extractFile('Zip/NewZip/ZipFile.zip'); The file will be extracted at the same location.
having problems with sample code, alert message : class not found.
is there a problem with the cordova2.1.0.js ? ( im using latest ver instead of phonegap 1.3.0.js)
I downloading a file using FileTransfer.download() and then trying to unzip it. Here's my code
ft.download(dlLocation,
dlPath,
function(entry) { // success
var ZipClient = new ExtractZipFilePlugin();
ZipClient.extractFile(entry.fullPath,
function (status) {
alert('Success'+status);
},
function (error) {
alert('Unzip Error: '+error);
},'ExtractZipFilePlugin');
},
function(error) { // fail
alert('Download Error');
});
I keep geting "IO Error" from the failure Callback. Though the file is downloaded. I know, I checked.
I believe I did all that is required to install your PhoneGap-ZipFile
But I get the following error
08-31 11:32:27.850: D/CordovaLog(13258): Error in success callback: FileTransfer6 = ReferenceError: extractFile is not defined
I am using this with FileTransfer.download(), and attempt to unzip the file after it has been downloaded.
I hope you can help me out.
DINO
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.