I found in the forum this method that prevent the delivery notice after sending sms (which involved an additional cost)
I would ask if using this method, the event "SmsSent" works or if need to implement the corresponding PendingIntent (sentIntent)
thanks
I would ask if using this method, the event "SmsSent" works or if need to implement the corresponding PendingIntent (sentIntent)
B4X:
Sub SendSms(PhoneNumber As String, Text As String)
Dim ps As PhoneSms
Dim r As Reflector
r.Target = r.RunStaticMethod("android.telephony.SmsManager", "getDefault", Null, Null)
r.RunMethod4("sendTextMessage", Array As Object(PhoneNumber, Null, Text, Null, Null), _
Array As String("java.lang.String", "java.lang.String", "java.lang.String", _
"android.app.PendingIntent", "android.app.PendingIntent"))
End Sub
thanks