?????????????
I got some information from the developer's website
????
val cursor = context.contentResolver.query(fileUri, null, null, null, null)
??????????????
val nameIndex = cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME)
val sizeIndex = cursor.getColumnIndex(OpenableColumns.SIZE)
cursor.moveToFirst()
val fileName = cursor.getString(nameIndex)
val size = cursor.getLong(sizeIndex)
???????
Don't forget to close resources