You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Douglas F.6's avatar
Douglas F.6
New member | Level 1
9 years ago

How share files direct to dropbox via intent?

Hi all.

The dropbox have a intent to share files, i see the dropbox when i want share a simple image on Android.

Now my question is, how share a image or file direct to dropbox via intent? like the user selected the dropbox icon?

I dont want show all apps to share, only share direct via intent.

for the google drive i use this

 

Dim u As Uri
u.Parse("file://" & File.Combine(folder,imagefile))
Dim i As Intent
i.Initialize(i.ACTION_SEND,"")
i.SetType("image/*")
i.SetComponent("com.google.android.apps.docs/.shareitem.UploadSharedItemActivity")
i.PutExtra("android.intent.extra.STREAM",u)
StartActivity(i)


com.google.android.apps.docs


but for dropbox? what the correct?
i m tryed com.dropbox.android but dont works, show anothers apps 

many thx



  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Hi Douglas, unfortunately we don't have intents like this documented for the Dropbox app, but I'll be sure to pass this along as a request to do so. 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,882 PostsLatest Activity: 24 hours ago
326 Following

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!