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);