Android Question Share Multiple Images with text

hanyelmehy

Active Member
Licensed User
Longtime User
i use this code to share Multiple Images
B4X:
Dim i As Intent
    i.Initialize("android.intent.action.SEND_MULTIPLE", "")
    i.SetType("image/jpeg")
    
    Dim Uris As List
    Uris.Initialize
    For Each image As String In lstImageNames
        Dim u As Uri = CreateFileProviderUri(strSrcFolder, image)
        Uris.Add(u)
    Next
    Dim jo As JavaObject = i
    jo.RunMethod("putParcelableArrayListExtra", Array As Object("android.intent.extra.STREAM", Uris))
    
    i.Flags = 1
    StartActivity(i)
any idea how to share Multiple Images with text
 

hanyelmehy

Active Member
Licensed User
Longtime User
Don't assume that all or most target apps will support it.

Try to add:
B4X:
Dim texts As List = Array("aaa", "bbb", ccc")
jo.RunMethod("putStringArrayListExtra", Array("android.intent.extra.TEXT", texts))
i already try this with whatsapp with no success
 
Upvote 0

Similar Threads

Top