Android Question SMSPHONE no longer works?

dibesw

Active Member
Licensed User
Longtime User
This app does not give errors but the message does not arrive
I use it for myself (not GooglePlay)
I tested on Android 10 and 13
B4A 12.80 (64bit)
Where is the problem?

thanks to those who answer me



Send SMS:
Private Sub Button1_Click
    RP.CheckAndRequest(RP.PERMISSION_SEND_SMS)
    Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
    If Result = False Then
        Msgbox("Non puoi usare l'applicazione!", "Post notification")
        ExitApplication
    End If

    '[B]THIS WORKS[/B]
    'Dim In As Intent
    'Dim number = "2222222222" As String
    'In.Initialize(In.ACTION_VIEW, "sms:" & number)
    'In.PutExtra("sms_body", "this is the body")
    'StartActivity(In)
    
    '[B]THIS NO LONGER WORKS[/B]
    Dim p As PhoneSms
    p.Send("2222222222","This is a message sent from your smartphone")
    'p.Send2("2222222222","This is a message sent from your smartphone",False,False)
End Sub

 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…