We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

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,877 PostsLatest Activity: 12 months ago
325 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!