Activate default SMS app on phone?

Malky

Active Member
Licensed User
Longtime User
I am trying to allow a user to send an SMS to a particular number, but need to open the default SMS app on the phone to edit the text.

The normal send function just sends as is and no app opens.

I've searched and searched but can't find a solution?

Any pointers are welcome.

Thanks,

Malky
 

dxxxyyyzzz

Member
Licensed User
Longtime User
B4X:
Dim inte As Intent
Dim number = 1234567890 As Int 
Dim body = "some text here" As String
      inte.Initialize(inte.ACTION_VIEW, "sms:" & number)
      inte.PutExtra("sms_body", body)
      StartActivity(inte)
 
Upvote 0
Top