Sharing some file via Skype Android

%3CLINGO-SUB%20id%3D%22lingo-sub-481819%22%20slang%3D%22en-US%22%3ESharing%20some%20file%20via%20Skype%20Android%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-481819%22%20slang%3D%22en-US%22%3E%3CP%3EHello!%3C%2FP%3E%3CDIV%3EI'm%20developing%20an%20android%20apps%20this%20app%20has%20the%20functionality%20to%20send%20some%20documents%20via%20other%20apps%2C%20include%20via%20skype.%20The%20problem%20is%20that%20if%20I%20want%26nbsp%3B%20to%20share%20via%20skype%20using%26nbsp%3B%20Intent%26nbsp%3B%20my%20document(document%20is%20photos%20and%20text)%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Eskype%20ignores%20the%20text%20and%20attaches%20only%20photo%20to%20the%20message.%3C%2FSPAN%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CSPAN%3EPlease%20help%20me%20in%20solving%20this%20problem%3C%2FSPAN%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESample%20code%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Eval%20%3C%2FSPAN%3Eintent%20%3D%20Intent(Intent.%3CSPAN%3EACTION_SEND%3C%2FSPAN%3E%3CSPAN%3E)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Eintent.putExtra(Intent.%3CSPAN%3EEXTRA_TEXT%3C%2FSPAN%3E%3CSPAN%3E%2C%20%3C%2FSPAN%3EsomeMessage)%3CBR%20%2F%3Eintent.putExtra(Intent.%3CSPAN%3EEXTRA_STREAM%3C%2FSPAN%3E%3CSPAN%3E%2C%20%3C%2FSPAN%3EimageUri)%3CBR%20%2F%3Eintent.%3CSPAN%3Etype%20%3C%2FSPAN%3E%3D%20%3CSPAN%3E%22*%2F*%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EstartActivity(Intent.createChooser(intent%2C%20%22Share%22))%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-481918%22%20slang%3D%22en-US%22%3ERe%3A%20Sharing%20some%20file%20via%20Skype%20Android%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-481918%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F326184%22%20target%3D%22_blank%22%3E%40Volodymyr744%3C%2FA%3E%26nbsp%3BHello!%20You've%20posted%20your%20question%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FCommunity-Discussion%2Fbd-p%2FCommunityQuestions%22%20target%3D%22_blank%22%3ECommunity%20Discussion%20space%3C%2FA%3E%2C%20which%20is%20intended%20for%20discussion%20around%20the%20Tech%20Community%20website%20itself%2C%20not%20product%20questions.%20I'm%20moving%20your%20question%20to%20the%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FSkype-for-Business-IT-Pro%2Fbd-p%2FSkypeforBusiness%22%20target%3D%22_blank%22%3ESkype%20for%20Business%20space%3C%2FA%3E%20-%20please%20post%20Skype%20for%20Business%20questions%20there%20in%20the%20future.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-722257%22%20slang%3D%22en-US%22%3ERe%3A%20Sharing%20some%20file%20via%20Skype%20Android%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-722257%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F326184%22%20target%3D%22_blank%22%3E%40Volodymyr744%3C%2FA%3E%26nbsp%3B%20did%20you%20find%20the%20solution%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-722275%22%20slang%3D%22en-US%22%3ERe%3A%20Sharing%20some%20file%20via%20Skype%20Android%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-722275%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F326184%22%20target%3D%22_blank%22%3E%40Volodymyr744%3C%2FA%3E%26nbsp%3B%20I%20advise%20you%20to%20use%20the%20ShareCompat%3A%3C%2FP%3E%3CPRE%3EShareCompat.IntentBuilder.%3CSPAN%3Efrom%3C%2FSPAN%3E(activity)%3CBR%20%2F%3E%20%20%20%20%20%20%20%20.setType(%3CSPAN%3E%22text%2Fplain%22%3C%2FSPAN%3E)%3CBR%20%2F%3E%20%20%20%20%20%20%20%20.setText(%22Shared%20text%22)%3CBR%20%2F%3E%20%20%20%20%20%20%20%20.setSubject(%3CSPAN%3E%22Shared%20title%22%3C%2FSPAN%3E)%3CBR%20%2F%3E%20%20%20%20%20%20%20%20.startChooser()%3B%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-724422%22%20slang%3D%22en-US%22%3ERe%3A%20Sharing%20some%20file%20via%20Skype%20Android%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-724422%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F367128%22%20target%3D%22_blank%22%3E%40belorepan%3C%2FA%3E%26nbsp%3BNo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-724549%22%20slang%3D%22en-US%22%3ERe%3A%20Sharing%20some%20file%20via%20Skype%20Android%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-724549%22%20slang%3D%22en-US%22%3EThanks%2C%20but%20it%20does%20not%20help%2C%20photos%20and%20text%20can%20not%20be%20sent%20together%20via%20skype%3C%2FLINGO-BODY%3E
New 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"))

5 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