<Scoped storage : Create file in documents folder,...
# stackoverflow
r
Scoped storage : Create file in documents folder, contentResolver?.query Uri returns null Each file write creating new files like txt, .txt(1), .txt(3), etc. const val CONTENT_UTI_PATH = "external" fun String.getSharedFilePath(): String = "/myApp/$this/Logs/" private fun createLoggerFolderInDocuments(context: Context, appName: String) { try { val values = ContentValues() values.put( MediaStore.MediaColumns.RELATIVE_PATH, android.os.Environment.DIRECTORY_DOCUMENTS + appName.getSharedFilePath() )...