Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
achatina
8 years agoNew member | Level 2
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?
1 Reply
- Greg-DB8 years ago
Dropbox Community Moderator
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
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!