Android Question Share Text and Picture Intent Creation

roycegerikchua

Member
Licensed User
Longtime User
Hi can anybody help me? I need to make an intent to share a picture and text to facebook twitter viber or others.
I found one that can help me but only text not picture.
this is the code that i found how can i edit this to include a photo as well
B4X:
    Dim in As Intent
    in.Initialize(in.ACTION_SEND, "")
    in.PutExtra("android.intent.extra.TEXT", "text here")
    in.SetType("text/plain")
    in.WrapAsIntentChooser("Share Via")
    StartActivity(in)

has anybody done this? Thanks in advance!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…