One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
lannyf77
8 years agoNew member | Level 2
why using Intent.ACTION_OPEN_DOCUMENT does not list the Dropbox?
Tried on Android Os 4.4, and above, if using Intent.ACTION_GET_CONTENT the android's file picker lists Google drives, Google Photos, Dropbox, etc. If using Intent.ACTION_OPEN_DOCUMENT, there just are no apps (like Dropbox, Photos etc.) in the file picker's drawer except only Google Drive.
How to list the Dropbox in Android's file picker drawer if using Intent.ACTION_OPEN_DOCUMENT?
code snippet of using ACTION_OPEN_DOCUMENT and ACTION_GET_CONTENT are listed below:
Intent openIntent = new Intent(Intent.ACTION_GET_CONTENT); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { openIntent = new Intent(Intent.ACTION_OPEN_DOCUMENT); openIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); } openIntent.addCategory(Intent.CATEGORY_OPENABLE); openIntent.setType("*/*"); startActivityForResult(openIntent, ANDROID_FILE_PICKER);
Intent openIntent = new Intent(Intent.ACTION_GET_CONTENT);openIntent.addCategory(Intent.CATEGORY_OPENABLE);openIntent.setType("*/*");startActivityForResult(openIntent, ANDROID_FILE_PICKER);
- Mark
Super User II
*moves to API forum*- lannyf77New member | Level 2
see https://developer.android.com/guide/topics/providers/document-provider.html
the ACTION_OPEN_DOCUMENT is intent and to get the files returned by document providers. The Document provider—A content provider that allows a storage service (such as Google Drive) to reveal the files it manages.
So when using the ACTION_OPEN_DOCUMENT the Dropbox should be listed in the picker. Why it does not?
- Greg-DB
Dropbox Staff
Thanks for the post! The Dropbox Android app doesn't implement ACTION_OPEN_DOCUMENT, but I'll be sure to pass this along as feedback.
About Discuss Dropbox Developer & API
Make connections with other developers807 PostsLatest Activity: 22 hours ago
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 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!