Closed joriscode closed 4 years ago
This pattern of using ACTION_PICK was originally borrowed from the open source project AntennaPod. I think what it is missing is listing what apps could service the request, then launch the one the user selects. isCallable() collects that data, but currently only cares if there exists an app that could be called.
There is a button that launches ACTION_GET_CONTENT currently, so there should be a way to launch it now without any change. Is that not what you are seeing?
Thank you for your answer!
Indeed there are 4 buttons :
ACTION_PICK
ACTION_GET_CONTENT
Button 2 suggests as I mentioned to select applications that do no enable to select a file from the filesystem. Button 3, indeed, does enable to select a file through the files browser.
It is a bit confusing for me. Shouldn't the labels of "button 2 and button 3" inverted?
Thanks for the report. I was looking through issues and realized this is a duplicate of #234 and thus has been fixed :)
@brarcher This issue can be closed
Closing this issue then. Thank you for the update
App version:
0.25.3
Android version:9
When I try to import the previously exported CSV file, I am asked to select an application to perform the action (WhatsApp or Instagram :( ) however the file browser (Files) is not listed.
I have managed to make it work by replacing https://github.com/brarcher/loyalty-card-locker/blob/392024f84f202b254efb5a915810121a00831fb1/app/src/main/java/protect/card_locker/ImportExportActivity.java#L87 with
However, I do not know if this is the correct approach and it breaks the tests. I would like to have you advice before I try to fix the tests.