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.