Contents
How can I zip a folder in android programmatically?
- String backupDBPath = Environment. getExternalStorageDirectory(). …
- final File backupDBFolder = new File(backupDBPath);
- backupDBFolder. mkdirs();
- final File backupDB = new File(backupDBFolder, “/db_pos. db”);
- String[] s = new String[1];
- s[0] = backupDB. getAbsolutePath();
- zip(s, backupDBPath + “/pos_demo. zip”);
21 февр. 2018 г.
How do I create a zip file on Android?
Here’s how:
- Step 1: Launch ES File Explorer and navigate to the files you want to compress.
- Step 2: Long-press on a folder to compress the whole folder. …
- Step 3: After you’ve selected all the files for your ZIP file, tap on “More,” then select “Compress.”
31 янв. 2014 г.