Hi Dropbox support team,
I would like to be able to share a document between the dropbox app and and my android app. My app supports the following intent filter:
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="application/pdf"/>
</intent-filter>
It works great when I export a file saved in dropbox to my app but it's broken when I share a document that is not saved in dropbox yet.
Steps to reproduce:
- open a doc from any email client using the dropbox preview
- tap on the menu icon and tap on "Share to"
-> the shared Uri doesn't allow me to read the file (I am using the ContentResolver)
The uri format passed between the apps is "file:///data/user/0/com.dropbox.android/global/external/docpreviews/XXXXX.pdf}".
I tried to shared this file with Inbox, Gmail, Slack... none of those apps are able to complete the action.
Is there a way a can read the file?
Would it be possible to pass a Uri that can be resolved by the ContentResolver?
Thanks,