``` try { cursor.use { c -> ...
# android
s
Copy code
try {
            cursor.use { c ->
                if (c.moveToFirst())
                    path = c.getString(c.getColumnIndex(MediaStore.Video.Media.DATA))
            }
        } catch (e: Exception) {
            Log.e("PlayerViewModel", e.message ?: "nomessage")
        }