S susu Well-Known Member Licensed User Longtime User Dec 16, 2010 #1 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?
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?
Erel B4X founder Staff member Licensed User Longtime User Dec 16, 2010 #2 Code: Copy Dim in As Intent in.Initialize(in.ACTION_VIEW, "sms:") in.PutExtra("sms_body", "this is the body") StartActivity(in) Upvote 0
Code: Copy Dim in As Intent in.Initialize(in.ACTION_VIEW, "sms:") in.PutExtra("sms_body", "this is the body") StartActivity(in)
hookshy Well-Known Member Licensed User Longtime User Aug 28, 2013 #3 Can you put phone number as in.PutExtra("phone_number","somenumber") ? Upvote 0
D dxxxyyyzzz Member Licensed User Longtime User Aug 28, 2013 #4 Code: Copy 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
Code: Copy 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)
merlin2049er Well-Known Member Licensed User Longtime User Aug 11, 2014 #5 Is anything required in the manifest? Upvote 0