Android Question How can ContentChooser be cancelled once .Show is initiated?

Andris

Active Member
Licensed User
Longtime User
I've implemented the ContentChooser library in my app and it works great. However, I can't see an easy way to cancel the Android chooser dialog which pops up once ContentChooser is initiated (.Show). There seems to be no button on the file selector dialog, even though the ContentChooser library description implies that cancelling is possible:

ContentChooser_Cancel.png


Can anyone help on this one?
 

Andris

Active Member
Licensed User
Longtime User
You can cancel the ContentChooser with the Android back button or the corresponding gesture.

Yes, thanks. I do have only gestures enabled, and not the back button, on Android 11 so that was part of my problem ;) . But, I've been choosing my Google Drive, with a lot of nested folders, for my content, so that's where the dialog starts each time. So getting back to my app requires lots of back button taps or swipes (since it goes back through the folder hierarchy), and then I lose my default Google Drive folder. It would be great if the dialog could be easily cancelled with some kind of Android command. Do you know if such exists? I should probably start a new thread for this one ...
 
Upvote 0

roumei

Active Member
Licensed User
The back gesture is handled by the OS and I don't think that it's possible to changed that. Perhaps another forum member knows more about this?
 
Upvote 0
Top