Open vamsee9 opened 4 years ago
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
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