Android Question Confirmation of sending SMS

ThePuiu

Active Member
Licensed User
Longtime User
Is there a way I can BE SURE the message was sent, even if it didn't reach my destination?
Is there confirmation of the arrival at the destination?
Used code for sending SMS:
B4X:
Sub SendLargeSms(Destination As String, Message As String)
    Try
        Dim r As Reflector
        r.Target = r.RunStaticMethod("android.telephony.SmsManager", "getDefault", Null, Null)
        Dim parts As Object
        parts = r.RunMethod2("divideMessage", Message, "java.lang.String")
        r.RunMethod4("sendMultipartTextMessage", _
      Array As Object(Destination, Null, parts, Null, Null), _
      Array As String("java.lang.String", "java.lang.String", _
         "java.util.ArrayList", "java.util.ArrayList", "java.util.ArrayList"))
        
        Log("SMS sent" & Destination)
    Catch
        Log(LastException)
    End Try
End Sub

Thank you!
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top