Suppose I am writing an alternative Camera application and wish to write images exactly into the same place as Camera does and name them exactly in the same name Camera does
Try using this code you can save the image bitmap to the directory using insert query
String imgSaved = MediaStore.Images.Media.insertImage( getContentResolver(), bitmap, System.currentTimeMillis() + ".jpg", "DESCRIPTION HERE");
For more details see the link