I have an application where when i press on a button it should open the folder picker and allow the user to browse and select a folder ONLY. Then i want to get the folder's path so that i can do some manipulation with it.
I've tried using this code:
val intent = Intent(Intent.ACTION_GET_CONTENT)
intent.type = "*/*"
startActivityForResult(intent, 8778)
But it doesn't work.
Can you please help by providing me with some code. Thank you.