Android Question open sms page and send phne number and text for send

zavaree

Active Member
Licensed User
Longtime User
How can I open a mobile sms page and send it a cellphone number and text?, in b4a
 

zavaree

Active Member
Licensed User
Longtime User
Hi
Please i explain.
I need send sms but iwl want open android sms and user can sms page and press send.
 
Upvote 0

BillMeyer

Well-Known Member
Licensed User
Longtime User
Do you want something like this ?


B4X:
Sub btn_Share_Click
    Dim in As Intent
    in.Initialize(in.ACTION_VIEW, "sms:")
    in.PutExtra("sms_body", "Have you seen the fabulous Blackwoods Pub Mobile App ?"&CRLF&CRLF&"Download the app now by clicking on the link below and then look out for awesome specials on the app"&CRLF&CRLF&"https://goo.gl/Pzvrej")
    StartActivity(in)
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…