Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
powder366
11 years agoNew member | Level 1
Android Storage Access Framework support
Hi,
Love Dropbox! Are you going to support Storage Access Framework?
Best Jonas
18 Replies
Replies have been turned off for this discussion
- szilvaa8 years agoNew member | Level 2
You do this on iOS, why not on Android? Please, please make it happen.
- Greg-DB8 years ago
Dropbox Community Moderator
I can't speak to why any particular request has or hasn't been implemented. I've sent this request along to the team, but I don't have an update on it. I'll follow up here if/when I do. - Olivier47 years agoNew member | Level 2
This is really pathetic.
- tfrysinger7 years agoExplorer | Level 4
Looks like there have been no responses for quite a while.
I have created an Android DocumentsProvider supporting the Storage Access Framework that supports DropBox. After having read through the three links posted above, the one question I can't get answered is whether it is considered OK to programmatically (and within the TOS) do the following:
1. Get a token for accessing a user's public folder (this appears to be ok, no credentials being stored by the app)
2. Utilize the token in the API to access a file (this appears to be ok)
3. Utilize the token in the API to generate a publicly shareable link to the file
4. Use the link generated to then have the app stream the file directly from DropBox to the app
Note that all of this is only possible when the user authenticates using the DropBox mechanism for authentication (i.e. outside the app), and then utilizes the resulting token.
Is that flow 1-4 considered ok for an app to perform?
I'm asking because while I have written a custom DocumentsProvider for DropBox, what I want to do is use it to allow the user to choose a file from their personal dropbox, then persist the direct shareable http link into a local DB for use in streaming the content from DropBox at a later date by the app. I want the streaming to be handled by components OTHER THAN the custom DocumentsProvider that are included in the app (i.e. Glide for images, ExoPlayer for video, etc.).
Essentially - I want to use the custom DocumentsProvider to allow the user to locate the file, then I want the other components in charge of streaming it down (which they do a great job of - no need for me to reinvent the wheel).
Is such use of the DropBox API:
1. Create Shareable Link
2. Pass link to Glide and/or ExoPlayer
Supported by the terms of service?
Thanks!
- Greg-DB7 years ago
Dropbox Community Moderator
tfrysinger We can't provide any absolute guarantee of compliance based on a description like this, so you should be sure to review all the guidelines and terms before developing code to use the Dropbox API:
https://www.dropbox.com/developers/reference/tos
https://www.dropbox.com/developers/reference/devguide
https://www.dropbox.com/developers/reference/brandingApps are reviewed for compliance during their production review.
That said, it sounds like you're just using the official API and are not attempting to mislead users, so I wouldn't expect any issues.
- Gato-Gato7 years agoExplorer | Level 4
As far as I understood, Dropbox doesn't support Storage Access Framework but also abandoned its "Chooser" for Android in 2014.
So, what's the official way to use files from Dropbox while on Android? A custom picker UI + the official SDK?
- tfrysinger7 years agoExplorer | Level 4
Gato-Gato -
Dropbox doesn't supply their own DocumentsProvider implementation that integrates with the SAF, but they do have a plethora of APIs to use if you want to roll your own. That's what I did.
My DocumentsProvider uses those APIs to implement the methods that the SAF calls. I based it off of an article Ian Lake wrote some time ago, located here: https://medium.com/androiddevelopers/building-a-documentsprovider-f7f2fb38e86a. There are some tricky parts to this (correctly implementing threading to deal with directories that have lots of entries, getting media metadata in a performant manner, etc.), but you can search StackOverflow for posts from me and see how I solved many of them.
- Gato-Gato7 years agoExplorer | Level 4
Cool, thanks a lot! Leaving your question and answers here for other thread's readers:
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!