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

achatina's avatar
achatina
New member | Level 2
7 years ago

Share files via Intent from android

Hi there!
I have a problem. My app has function for shareing image + text via Intent, but when i'm choosing dropbox it shareing only image or only text.

 

val shareIntent = Intent()
        shareIntent.action = Intent.ACTION_SEND
        when {
            imageUri.isNotEmpty() -> {
                shareIntent.putExtra(Intent.EXTRA_STREAM, imageUri)
                shareIntent.type = "image/*"
            }
            else -> shareIntent.type = "text/plain"
        }
        shareIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
        shareIntent.putExtra(Intent.EXTRA_TEXT, text)
        startActivity(Intent.createChooser(shareIntent, "Share images..."))

That is how i'm shareing files. What's wrong and what should i do?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    I'm afraid I can't offer help with this myself as this is about using the Intent system on Android with the Dropbox Android app, and not the Dropbox API itself, but I'll send this along to the right people to see if we can help with this.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,920 PostsLatest Activity: 9 hours ago
334 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!