How to send sms by calling intent?

susu

Well-Known Member
Licensed User
Longtime User
I know Phone library can send sms directly but B4A doesn't access contacts yet so I want to call intent. Just like open the browser with a specific web page, in this case open the sms with specific content. How can I do this?
 

dxxxyyyzzz

Member
Licensed User
Longtime User
B4X:
Dim In As Intent
Dim number = "0123456789" As String
In.Initialize(In.ACTION_VIEW, "sms:" & number)
In.PutExtra("sms_body", "this is the body")
StartActivity(In)
 
Upvote 0
Top