Can anyone give me an example on how to write a background (as Service) application that intercepts received sms without notification.
here is my code but its not called when a sms is received (i am new to b4a):
Activity
---------------
Sub Activity_Create(FirstTime As Boolean)
StartService(Service1)
End Sub
Service
---------------
Sub Service_Create
Dim SI As SmsInterceptor
SI.Initialize2("SI", 999)
End Sub
Sub SI_MessageReceived (From As String, Body As String) As Boolean
SaveText(From & " : " & Body)
Return True
End Sub
I wrote SI_MessageReceived sub , should it be registered anywhere or automatically created by a tool ?
here is my code but its not called when a sms is received (i am new to b4a):
Activity
---------------
Sub Activity_Create(FirstTime As Boolean)
StartService(Service1)
End Sub
Service
---------------
Sub Service_Create
Dim SI As SmsInterceptor
SI.Initialize2("SI", 999)
End Sub
Sub SI_MessageReceived (From As String, Body As String) As Boolean
SaveText(From & " : " & Body)
Return True
End Sub
I wrote SI_MessageReceived sub , should it be registered anywhere or automatically created by a tool ?