Forum Discussion

Andhie W.'s avatar
Andhie W.
New member | Level 1
11 years ago

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
  • Chun Yeen M.'s avatar
    Chun Yeen M.
    New member | Level 2
    10 years ago

    I'm writing a new app and bump into the same issue here. Please support `content://` URI for the same reasons mentioned by posters above. It is an extra unnecessary unsafe permission viewed from user's perspective.

    Fix this please?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    Thanks for the feedback! I'm sending it along to the team.

  • Anton S.7's avatar
    Anton S.7
    New member | Level 1
    10 years ago

    +1, have the same issue. It was acceptable prior to Marshmallow (but not ideal of course) but now it looks like I just have to ask users my users for READ permissions just to be able to read files returned by Dropbox... 

  • Andy H.31's avatar
    Andy H.31
    New member | Level 1
    10 years ago

    +1 for supporting 'content://' since I'm getting mixed bug reports, where our import feature works on some devices but not others.

     

    So this problem is bad especially because the results are inconsistent...

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago
    No, unfortunately I don't have an update on this.

About Dropbox API Support & Feedback

Node avatar for 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!