0
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.

Rami
  • 7,879
  • 12
  • 36
  • 66
parth
  • 1
  • 1

1 Answers1

0

You can never unzip a zip file to res folder. In mobile, you can unzip it to an SD card or your data/data folder. I think you want to change app's skin this way, but it is impossible. If you want to change the skin follow this Android add extra skin as separate APK

Community
  • 1
  • 1
sunday
  • 48
  • 6
  • no, i want to unzip that dir and wnt to use in frame animation. if you could help me with that plz help me – parth Nov 22 '14 at 06:49