Android Question SMS hyperlink opens application Messages but no new SMS appears.

hatzisn

Well-Known Member
Licensed User
Longtime User
Good evening everyone,

It's been a long time since I 've done this so I either don't remember correctly or because it is the first time I am doing it in Android 12 something has changed. I tried to send an sms using a hyperlink with PhoneIntents openbrowser command from the default SMS app. The code seems to work, the default application (Messages) opens but there is no precreated message in it. I instead see the screen with the SMSs and that's all. This is the code. Any suggestions anyone?

B4X:
    wait for (xui.Msgbox2Async("Send SMS with credentials?", "Verification", "Yes", "", "No", Null)) MsgBox_Result(iRet As Int)
    If iRet = xui.DialogResponse_Positive Then
        Dim p As PhoneIntents
        StartActivity(p.OpenBrowser($"sms:${txtPhoneMobile.Text}?body=Your credentials are..."$))
    End If
 
Last edited:

hatzisn

Well-Known Member
Licensed User
Longtime User

It works. Thanks.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…