Android Question MESShareLibrary types / share text

nemopeti

Member
Licensed User
Longtime User
Hello,

I like to use MESShareLibrary to share text information in social media, but I cannot figure out the "p_type" parameter for it.
If I use text/sms than the fraiendcaster app not shown in the share options, but if I use image/xxx than shows tha friendcaser, but becouse of the missing image, not work..

Can someone suggest me a solution?

I try it like this:
B4X:
Sub Label1_Click
    Dim share As MESShareLibrary
    Dim fn As String
    Dim full_fn As String
   
    fn = "share.txt"
    full_fn = File.DirInternal & "/" & fn
   
    File.WriteString(File.DirInternal,fn,Label1.Text)
    share.sharebinary("file:/" & fn,"image/png",Label1.Text,Label1.Text)
End Sub

and:
B4X:
Sub Label1_Click
    Dim share As MESShareLibrary
    Dim fn As String
    Dim full_fn As String
   
    fn = "share.txt"
    full_fn = File.DirInternal & "/" & fn
   
    File.WriteString(File.DirInternal,fn,Label1.Text)
    share.sharebinary("file:/" & fn,"text/sms",Label1.Text,Label1.Text)
End Sub
 
Top