Android Question SMS intent success sub

Discussion in 'Android Questions' started by Alberto Michelis, Jun 10, 2019.

  1. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    Using PhoneSms I used to have this subs that inform if the SMS was sent OK.

    Code:
    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:

    Code:
    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: Jun 10, 2019
  2. DonManfred

    DonManfred Expert Licensed User

    Please use [CODE]code here...[/CODE] tags when posting code. You are member since 4 Years. You really should know!
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    It is not possible. The messaging app isn't expected to return the result.

    If it is critical for you then you should use an external SMS service.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice