Delete files in Android 11
I am trying to delete files (photos, videos, audio) with the consent of the user. But when I try to bring up a window for the user agreement, I get an error. For some reason my Uri variable doesn't fit
My code:
if (Build.VERSION.SDK_INT >= 30) {
val collection: ArrayList = ArrayList()
for (i in 0 until Params.dataListPath.size) {
collection.add(Params.dataListPath[i].file.path.toUri())
Log.d(TAG, "onShowDialogConfirmDelete: " +...