Android Question Can B4A share the content of the text box to WeChat

teddybear

Well-Known Member
Licensed User
What do you mean the sharing the content of the text box to WeChat?
copy the content to clipboard, and then start wechat intent and paste it?
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Try:
B4X:
Private Sub BtnShare_Click
    Dim in As Intent
    in.Initialize(in.ACTION_SEND, "")
    in.PutExtra("android.intent.extra.TEXT", txtMessage.Text)
    in.SetType("text/plain")
    in.SetPackage("com.tencent.mm")
    StartActivity(in)
End Sub
 
  • Like
Reactions: byz
Upvote 0

wuxuetie

Member
What do you mean the sharing the content of the text box to WeChat?
copy the content to clipboard, and then start wechat intent and paste it?
Thank you for your answer
Directly launch WeChat, select personnel, and the content will be displayed in the WeChat dialog box
 
Upvote 0
Top