We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Andhie W.
11 years agoNew member | Level 1
Android ACTION_GET_CONTENT from Dropbox sources
Device OS: Lollipop 5.0
When using the Intent ACTION_GET_CONTENT and selecting Dropbox from the Storage Provider, Dropbox prompts a file picker dialog to choose from. The result obtained in onActivityResult is something like
file:///storage/emulated/0/Android/data/com.dropbox.android/files/u6763728/scratch/Camera%20Uploads/2012-04-02%2012.34.44.jpg
The requesting app will not have read permission as its dropbox own private directory even with WRITE_EXTERNAL_STORAGE permission. In KitKat, it is recommended to use FileProvider to share a file via a content:// uri
26 Replies
Replies have been turned off for this discussion
- Greg-DB11 years ago
Dropbox Community Moderator
I don't have an update on the Dropbox for Android app potentially returning content:// links for ACTION_GET_CONTENT in the future, but I'll be sure to pass this along as feedback.
- Evgeny B.11 years agoNew member | Level 1
Same issue. My app does NOT has READ_EXTERNAL_STORAGE permission. I'm using ACTION_GET_CONTENT intent to pick file from any app that can handle it. The Dropbox returns URI starting with 'file://' and my app can not read file since there is no permission. Other apps (including Google Drive) returns URI starting with 'content://' and my app can read it without any issue. As a result, users of my app can not use Dropbox to pick file. It forces them to use different app. I think you better fix it to stop loosing users. Why you still don't have any plans regarding the issue?
- Greg-DB11 years ago
Dropbox Community Moderator
Thanks for the additional feedback Evgeny! I can't speak to why or why not particular changes are or aren't implemented, but we appreciate everyone taking the time to write, and I'm sending this along to the team.
- ti11 years agoNew member | Level 1
Hello, Gregory. Thank you for your reply.
I have one more question.
When the Dropbox supports `content://` URI, can we get that notification?
e.g. a comment at here, your blog or a page such as the release-note.
(It seems that the update information in the Google Play page does not include the information about development.)
We need that notification because we will have to update our apps at that time. - Greg-DB11 years ago
Dropbox Community Moderator
I'll be happy to update this thread if/when I have any news on this.
- ti11 years agoNew member | Level 1
Thank you! :D
- Marius V.11 years agoNew member | Level 1
Hi Gregory,
I imagine the team is already aware of this, but in Android Marshmallow the READ_EXTERNAL_STORAGE permission is classified as "dangerous" and requires for the developer to request, and the user to grant, permission at runtime. As you can imagine, the experience is rather strange for a user:
- User opens Dropbox
- User clicks file
- User chooses my app
- My app launches and asks to access the SD card
The context isn't there for a user as to why my app suddenly needs to get access to the SD card.
One thing I noticed, is that using the export functionality in the Dropbox app does not require the READ_EXTERNAL_STORAGE permission, so I assume this does share a content:// uri.
- Greg-DB11 years ago
Dropbox Community Moderator
Thanks for the feedback Marius!
- Josh Y.110 years agoNew member | Level 1
Hi Gregory,
Is there any update on this issue? Users of my app are unable to upload files from Dropbox at the moment, while other services like Google Drive working fine. The only way for me to fix this is to add a permission prompt to my app specifically for Dropbox.
One of the great benefits of using the file picker in Android Marshmallow is that you can share files safely between apps without having to grant permissions that would allow apps to have access to more files than are necessary. It would be great if Dropbox returned a URI using the content:// scheme so that users don't have to deal with unnecessary permission prompts.
Thanks!
- Greg-DB10 years ago
Dropbox Community Moderator
Thanks for the feedback Josh. I don't have an update on this unfortunately, but I'll send along your feedback as well.
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!