cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Share files via Intent from android

Share files via Intent from android

achatina
New member | Level 2

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?

1 Reply 1

Greg-DB
Dropbox 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.
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?