From 1f0514c7e917be27eeeb7881cbcff629aade66e5 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 1 Sep 2017 10:32:17 +0200 Subject: [PATCH] - keep the filename while exporting in android - removed timestamp in android --- src/android/SaveImage.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/android/SaveImage.java b/src/android/SaveImage.java index eaf3ea2..6f86486 100644 --- a/src/android/SaveImage.java +++ b/src/android/SaveImage.java @@ -113,8 +113,7 @@ private File copyFile(File srcFile, File dstFolder) { } // Generate image file name using current date and time - String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmssSSS").format(new Date()); - File newFile = new File(dstFolder.getPath() + File.separator + "IMG_" + timeStamp + ".jpg"); + File newFile = new File(dstFolder.getPath() + File.separator + srcFile.getName()); // Read and write image files FileChannel inChannel = null;