Android Question SMSInterceptor

raphipps2002

Active Member
Licensed User
Longtime User
I have written an app the intercepts all SMS and depending upon the body text which contains some CODE does something.

However, is it possible to intercept the message and if there are no such CODES and it is therefore a 'normal' SMS simply passes it on to the phones normal sms receiver

I think the the parameter 99999 is higher than recommended but I want to ensure every messages passes through the app, without exception

B4X:
Sub Process_Globals
      Dim SMSIntercept1 As SmsInterceptor
End Sun

Sub StartListening

    SMSIntercept1.Initialize2("SI",99999)
   
    ToastMessageShow("I am listening",False)

End Sub

Sub SI_MessageReceived(from As String, msg As String) As Boolean
   
   If msg <> "?!?!?!?" then
         
               'just pass on the phones normal sms app

    end if

End Sub


Any ideas?
 
Top