karthikr wrote: > Im trying to run an unix command from my application,
I am uncertain if the commands available in Android, few as they are, are part of the public API, and as such perhaps should not be relied upon. Of course, based upon your code, you've apparently decided that sticking to public APIs is way too limiting... > Basically I want to extract a tar file, but Im getting an I/O > exception while running the below code. Do you have any evidence that Android has a tar utility installed on $PATH? I can't seem to find one. > Can you please tell me as to how this has to be done Find Java code that can extract tarballs. For example, searching Google on: java tar extract turns up all sorts of goodness: http://commons.apache.org/compress/ http://www.trustice.com/java/tar/ (this is a little old) http://blog.2much2learn.com/?p=3 (recent blog post on using above code) the tar code from Ant (http://ant.apache.org) I'd start with Apache Commons Compress. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---