FileNotFound Exception when saving an image to sub directory in external storage
private fun takeScreenshot() {
val now = Date()
val formattedTimestamp = DateFormat.format("yyyy-MM-dd_hh
mmss", now)
try {
//val mPath : String = Environment.getExternalStorageDirectory().toString().toString().toString() + "/" + formattedTimestamp + ".jpg"
// image naming and path to include sd card appending name you choose for file
val mPath: String = Environment.getExternalStorageDirectory().toString().toString() + "/mobile/" +...