Android Question SMS intent success sub

Alberto Michelis

Well-Known Member
Licensed 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:
Top