Sharing some file via Skype Android

Copper Contributor

Hello!

I'm developing an android apps this app has the functionality to send some documents via other apps, include via skype. The problem is that if I want  to share via skype using  Intent  my document(document is photos and text), skype ignores the text and attaches only photo to the message.

 

Please help me in solving this problem

 

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"))

6 Replies

@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. 

@Volodymyr744  did you find the solution?

@Volodymyr744  I advise you to use the ShareCompat:

ShareCompat.IntentBuilder.from(activity)
.setType("text/plain")
.setText("Shared text")
.setSubject("Shared title")
.startChooser();
Thanks, but it does not help, photos and text can not be sent together via skype

@Volodymyr744 for text files you can set "text/*" as mime type instead of "text/plain", by this it may be possible.