Hello,
The program in thread http://www.b4x.com/forum/questions-help-needed/1015-sms-reciever.html works okee but can I run the program without a form in the background were it waits on an incoming SMS and then continues/intercepts when one is received?
My code is similar but instead of puting the text in a label I want to show the message with for instance a MsgBox.
Like this,
Sub Intercept_MessageReceived
Sms.Value = Intercept.ReceivedMessage
Msgbox("SMS received from " & SMS.From & " at " & Time(SMS.DateReceived) & CRLF & CRLF & SMS.Body)
End Sub
When I run the program, nothing happens and I think it does not even run anymore.
Regards, Rob
The program in thread http://www.b4x.com/forum/questions-help-needed/1015-sms-reciever.html works okee but can I run the program without a form in the background were it waits on an incoming SMS and then continues/intercepts when one is received?
My code is similar but instead of puting the text in a label I want to show the message with for instance a MsgBox.
Like this,
Sub Intercept_MessageReceived
Sms.Value = Intercept.ReceivedMessage
Msgbox("SMS received from " & SMS.From & " at " & Time(SMS.DateReceived) & CRLF & CRLF & SMS.Body)
End Sub
When I run the program, nothing happens and I think it does not even run anymore.
Regards, Rob