(File file)
| 37 | } |
| 38 | |
| 39 | public static void openFile(File file) { |
| 40 | Intent intent = new Intent(Intent.ACTION_VIEW); |
| 41 | intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); |
| 42 | intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); |
| 43 | intent.setDataAndType(getShareUri(file), FileUtil.getMimeType(file.getName())); |
| 44 | App.get().startActivity(intent); |
| 45 | } |
| 46 | |
| 47 | public static void gzipCompress(File target) { |
| 48 | byte[] buffer = new byte[16384]; |
no test coverage detected