We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
Andhie W.
10 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 onAc...
Greg-DB
10 years agoDropbox Staff
Thanks for your patience Craig. I heard back from engineering here with the following information:
-
FLAG_GRANT_READ_URI_PERMISSION
seems to have no effect. - On Android API level 18 (and presumably probably below), specifying
READ_EXTERNAL_STORAGE
orWRITE_EXTERNAL_STORAGE
does not matter. The calling app is able to read the file irrespective of these settings. - On Android API level 19 and above, the calling app needs the
READ_EXTERNAL_STORAGE
orWRITE_EXTERNAL_STORAGE
permission to be able to read the data provided by us.
Also, on Android API level 19 and above caller will need to read the data using the ContentResolver#openInputStream(fileUri)
method to be able to read the files. While on API level 18 and below directly creating the file object to read the file works.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,875 PostsLatest Activity: 2 years agoIf 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 or Facebook.
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!