Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed README with proper instructions.

  • Loading branch information...
commit 428d9b9f95de2aff63320e160761554526f140c2 1 parent 353952a
@vishalrajpal vishalrajpal authored
Showing with 37 additions and 1 deletion.
  1. +37 −1 Android/ExtractZipFile/README
View
38 Android/ExtractZipFile/README
@@ -1 +1,37 @@
-gfhgfhfghgfhyjmhj
+ExtractZipFile Phonegap Plugin for Android
+=======================================
+This plugin allows you to eatract a zip file located in your sdcard.
+
+Adding the Plugin to your project
+=================================
+
+ To install the plugin, copy ZipPlugin.js to your project's www folder and include a reference to it in your html files.
+
+ <script type="text/javascript" src="ZipPlugin.js"></script>
+
+ Create a folder called 'com/phonegap/plugin/ExtractZipFile' within your project's src folder and copy ExtractZipFilePlugin.java file into that new folder.
+
+ Add a plugin line to res/xml/plugins.xml
+ <plugin name="ZipPlugin" value="com.phonegap.plugin.ExtractZipFile.ExtractZipFilePlugin" />
+
+Using the plugin
+================
+ function extractFile(fileName)
+ {
+ var ZipClient = new ExtractZipFilePlugin();
+ ZipClient.extractFile('sdcard/'+fileName,win,fail,'ExtractZipFilePlugin');
+ }
+
+ function win(status)
+ {
+ alert('Success'+status);
+ }
+
+ function fail(error)
+ {
+ alert(error);
+ }
+
+Function Call
+=============
+ <input type="button" value="Extract Zip File" onClick="extractFile('ZipFolder/ZipFile.zip');"/>

0 comments on commit 428d9b9

Please sign in to comment.
Something went wrong with that request. Please try again.