1

Given a compressed tar file (created by gzip) on the SDCard I need to expand/uncompress it within an Android app. The tar file contains pictures, text, and subfolders with files under the subfolders. I want the expansion/decompression to maintain the directory hierarchy.

I've tried using commons-compress-1.2.jar but Android reports issues with the .jars ArchieveException.

I'm want to implement something like:

File inputFile = new File("path to the downloaded tar");

File outputDir = new File("Directory on the SDCard to uncompress to");

DecompressThis(inputFile, outputDir);

user1603721
  • 188
  • 3
  • 12

1 Answers1

1

Wasn't a trivial solution as I'd hoped. I put together several pieces of public code/library and created an AsyncTask that does what I'm looking for.

Thanks for the input/help from everyone.

user1603721
  • 188
  • 3
  • 12