Apr 24 2019 02:03 AM
Hello!
Sample code:
val intent = Intent(Intent.ACTION_SEND)
intent.putExtra(Intent.EXTRA_TEXT, someMessage)
intent.putExtra(Intent.EXTRA_STREAM, imageUri)
intent.type = "*/*"
startActivity(Intent.createChooser(intent, "Share"))
Apr 24 2019 05:10 AM
@Volodymyr744 Hello! You've posted your question in the Community Discussion space, which is intended for discussion around the Tech Community website itself, not product questions. I'm moving your question to the Skype for Business space - please post Skype for Business questions there in the future.
Jun 26 2019 08:57 AM
@Volodymyr744 did you find the solution?
Jun 26 2019 09:07 AM
@Volodymyr744 I advise you to use the ShareCompat:
ShareCompat.IntentBuilder.from(activity)
.setType("text/plain")
.setText("Shared text")
.setSubject("Shared title")
.startChooser();
Jun 27 2019 01:28 AM
Dec 30 2022 01:56 AM
@Volodymyr744 for text files you can set "text/*" as mime type instead of "text/plain", by this it may be possible.