Android Question SMS intent success sub

Alberto Michelis

Well-Known Member
Licensed User
Longtime User
Using PhoneSms I used to have this subs that inform if the SMS was sent OK.

B4X:
Sub sms_ReceiveSentNotification (Success As Boolean)
  If Success Then
    ToastMessageShow("SMS enviado con éxito", True)
  Else
    ToastMessageShow("Error enviando SMS: "&LastException.Message, True)
  End If
End Sub

Now Im using the code Erel posted like:

B4X:
            Dim In As Intent
            Dim number = Main.SMSoperador As String
            In.Initialize(In.ACTION_VIEW, "sms:" & number)
            In.PutExtra("sms_body", "Alerta de SL !!!  "&tiket&" cotiza DEBAJO del SL indicado.")
            StartActivity(In)

How to check it with this new code?
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Please use [CODE]code here...[/CODE] tags when posting code. You are member since 4 Years. You really should know!
 
Upvote 0
Top