<FileNotFound Exception when saving an image to su...
# stackoverflow
u
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_hhmmss", 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/" +...