I have some files saved in the private app-specific folder of the app.
If I get a file uri through the FileProvider
val fileUri = getUriForFile(this, "$packageName.fileprovider", file)
and query the content resolver to get the file metadata
contentResolver.query(fileUri, null, null, null, null)
and check all the columnNames inside the cursor I'm getting, I can see that there are only two columns, which are _display_name and _size
What if I wanted to obtain the date of creation/last modification of the file from the uri? Is there something I could do?
(I know I could get it from the File object, but I'd need it from the uri, the real code is more complex than this example.)
Thanks!