public void onClick(View v)
{
try {
// Initiate ZipFile object with the path/name of the zip file.
ZipFile zipFile = new ZipFile("/sdcard/animation.zip");
// Extracts all files to the path specified
zipFile.extractAll("/sdcard/");
} catch (ZipException e) {
e.printStackTrace();
}
Toast.makeText(getApplicationContext(), "button clicked", Toast.LENGTH_LONG).show();
}
This is what i have done.
I am able to unzip my animation.zip
file on sdcard but i want to unzip it in res/drawable-hdpi folder.