AndroidScannerDemo icon indicating copy to clipboard operation
AndroidScannerDemo copied to clipboard

How to save scanned images in specific directory not in pictures

Open vamsee9 opened this issue 4 years ago • 2 comments

At this string, I think we need to add folder like /AndroidScannerDemo/img.jpg

String path = MediaStore.Images.Media.insertImage(context.getContentResolver(), bitmap, "Title", null);

at this line: Line 23

vamsee9 avatar Aug 14 '20 05:08 vamsee9

try { String filename = "NalinBansal.jpg"; String directory = new String(Environment.getExternalStorageDirectory().getAbsolutePath() + "/myFolder"); save(directory + "/" + filename); println("File saved successfully."); }

nalinbansal1234 avatar Aug 22 '20 18:08 nalinbansal1234

@nalinbansal1234 its pure java but andriod java is bit different I think

vamsee9 avatar Aug 27 '20 06:08 vamsee9