AndroidScannerDemo
AndroidScannerDemo copied to clipboard
How to save scanned images in specific directory not in pictures
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
try { String filename = "NalinBansal.jpg"; String directory = new String(Environment.getExternalStorageDirectory().getAbsolutePath() + "/myFolder"); save(directory + "/" + filename); println("File saved successfully."); }
@nalinbansal1234 its pure java but andriod java is bit different I think