1 parent
6d0b55ac26
commit
2c3bafdac3
6 files changed
-68
No files matched your search
@@ -120,18 +120,4 @@ public class UriArchiveAccessor implements Closeable {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static native boolean compressDirToOutStream(String dirname, int format, OutputStream os);
|
||||
|
||||
public static synchronized boolean exportGalleryArchive(String dirName, int format, Uri target, Context context) {
|
||||
try {
|
||||
OutputStream os = context.getContentResolver().openOutputStream(target);
|
||||
compressDirToOutStream(dirName, format, os);
|
||||
os.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user