I know this great function from Erel:
but the problem is that, this divide EVERY SMS for parts with MAX 72 unicode characters.
So the question is - how to send multipart SMS as simple ASCII characters, not unicode characters ?
B4X:
Sub SendLargeSms(Destination As String, Message As String)
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"))
End Sub
but the problem is that, this divide EVERY SMS for parts with MAX 72 unicode characters.
So the question is - how to send multipart SMS as simple ASCII characters, not unicode characters ?
Last edited: