SMS intercept question

walterf25

Expert
Licensed User
Longtime User
Hello all, i apologize before hand, but i could not find the answer to this question anywhere in the forums, i'm working on an application which will intercept incoming text messages, but for some reason when there's a long text message i can only intercept part of the message.
my code looks like this!

B4X:
Dim SI As SmsInterceptor
SI.Initialize2("SI", 999)

'messagerecieved sub
Sub SI_MessageReceived (From As String, Body As String) As Boolean 
Log("Message From: " & From)
Log("Message Body: " & Body)
Return True

End Sub

This text is received ok
This is a test to intercept a text message and then send it to an e-mail address

a text longer than this gets truncated and only part of it is received, is there a way to receive all the text in a long text message?

Thanks all for you help!

Cheers,
Walter
 

fdx12345

Active Member
Licensed User
Longtime User
Just went through all of that

I just went through the exact thing and meant to post what I have learned. Give me a littele while to put it all together.

Bill
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
SMS interception

Hi there fdx, thank you so much for your reply, and take your time, i really hope your solution works for me as well!

Take care,
Walter
 
Upvote 0

fdx12345

Active Member
Licensed User
Longtime User
It will work

I had my doubts also, but some wise gentleman clued me in and it works great. I have posted the instructions.

Bill
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
Upvote 0
Top