Skip to content
Browse files

Merge pull request #526 from vishalrajpal/patch-1

Changed README with proper instructions.
  • Loading branch information...
2 parents 353952a + 428d9b9 commit fe75cad61c2899f8c439339288d975f35941efd2 @macdonst macdonst committed
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 fe75cad

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