Như Quỳnh Lan
New member
How can I zip a file in android programmatically?
Answer
Answer
- 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”);