1

Possible Duplicate:
How do I extract a tar file in Java?

I have tar file in my res/raw folder,

How can I extract this file to data/data/my.project.name/folder ?

Can You help me ?

Community
  • 1
  • 1
Dawid Sajdak
  • 3,064
  • 2
  • 23
  • 37
  • 1
    Related: [How do I extract a tar file in Java?](http://stackoverflow.com/questions/315618/how-do-i-extract-a-tar-file-in-java) – miku Jun 13 '11 at 11:42
  • @miku Why you marked this question as a duplicate? Many of the java libraries for Tar make use of java.nio... Android does not have full support – user60108 Jul 07 '16 at 03:32
  • @user60108, you make a very good point. But it would have been helpful, if the OP included a bit more background into the question and maybe also the reason the standard approach don't work (e.g. NIO not available, etc.). – miku Jul 07 '16 at 05:40

1 Answers1

1

Put it in your assets folder instead; Android has functions to open assets as if they are files.

mah
  • 39,056
  • 9
  • 76
  • 93