FRANCAIS
Ayant besoin d'un extracteur d'archive (ZIP / RAR / 7z) pour un projet personnel sur la plateforme Android 2.2, je vous partage la librairie que j'ai créée afin de répondre à mes besoins. Je la distribue sous la license LGPL 2.1
J'utilise les projets andro7z et unrar dans le code de ma libraire.
ENGLISH
Needing a lib for extract archive file (ZIP / RAR / 7z)for a personal project on the Android 2.2 platform, I created and share my personnal library. My library is share in the LGPL 2.1
I'm using the andro7z project and the unrar project for coding my library.
Sample / Exemple
try {
ExtractFile ef = new ExtractFile(context app, archive file, output directory);
ef.exec();
} catch (IOException e) {
Log.e("Extract error", e.getMessage());
}
Uses-permissions
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_OWNER_DATA" />
<uses-permission android:name="android.permission.WRITE_OWNER_DATA" />
<uses-permission android:name="android.permission.CLEAR_APP_CACHE" />
Links / References
- andro7z - https://code.google.com/p/andro7z/
- junrar - https://github.com/edmund-wagner/junrar