We could replace our current file picker with the Android one based on Storage Access Framework (SAF), making simple for users to browse and upload documents, images, and other files.
This is what we currently have to upload files from the Android internal storage.
| Tap upload button | Select files | oC custom file picker |
| ------------- | ------------- | ------------- |
|
|
|
|
On the right we have our custom file picker, which has made sense for several years but Android 4.4 (API level 19) introduced the storage access framework, which makes the life easy to the Android developers, being the responsible of showing files to perform actions with them.
Fortunately, we have this already when using the content from other apps button.
| Tap content from other apps button | Storage access framework |
| ------------- | ------------- |
|
|
|
As you can see above, in the screenshot on the right, we can upload files images, videos, recent, internal storage and other apps files from there so our custom file picker would not be needed anymore and we would save time spent in fixing known and coming issues on it since Android picker takes care of that and also includes additional sorting, select all, search features and more.
So this is what I propose:
This would be the UI result:
| Tap upload button | Select files | Storage access framework |
| ------------- | ------------- | ------------- |
|
|
|
|
What's your opinion on this? @hosy @michaelstingl @jesmrec
this is a step forward since we get rid of features that are already supported by the framework. By placing the Uploads from Camera in other small button from the FAB we will not lose features and will have an straighforward way to upload files from other locations. Works for me.
By placing the
Uploads from Camerain other small button from the FAB we will not lose features and will have an straighforward way to upload files from other locations. Works for me.
Yes, that was my first approach but I discarded it because if we include the _Uploads from Camera_ button in FAB, then there will not be enough room for coming features, specially when using the app in landscape mode. Keeping the bottom sheet is better imho since is more flexible and can be scrollable.


Yeah, I always vote for the more native implementation and simplification 馃憤
@jesmrec I would like to work on this.
Would be great if you implemente this. Looking forward to see your PR!
@sd1998 if you start working, please add a Work in Progress Label
Done!! will be available in 2.11
Most helpful comment
@jesmrec I would like to work on this.