My app asks users to select a Google Drive folder so that it can save files to the selected folder later.
Until now it used the folder picker UI of the Google Drive Android API, but now that is deprecated and shut down. The migration note suggests to use the Storage Access Framework (a.k.a SAF) in order to replace the File Picker UI that was previously available.
The problem is that when I am trying to use the ACTION_OPEN_DOCUMENT_TREE action to launch the SAF UI, Google Drive doesn't show up. Another Stackoverflow posts suggest that picking Google Drive folders is not supported with SAF, which is bizarre as it's a very essential and basic feature.
Is there any way to implement a folder picker UI for Google Drive without having to build it myself from scratch?
val intent = Intent(Intent.ACTION_OPEN_DOCUMENT_TREE);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
startActivityForResult(intent, 3);