I'm trying to create an app which will delete the sms received from specific name/number.
I'll use SMSpluslib to delete sms. Now I need your help.
My code is
How the delete message snippet should be?
I'll use SMSpluslib to delete sms. Now I need your help.
My code is
B4X:
#
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim si As SmsInterceptor
Dim dl As SmsMessages
Dim Froms() As String
Forms = Array As String ("Offer", "Cricket")
End Sub
Sub Service_Create
si.Initialize2("si", 999)
End Sub
Sub Service_Start (StartingIntent As Intent)
StartService("")
End Sub
Sub Service_Destroy
StopService("")
End Sub
Sub si_MessageReceived (From As String, Body As String) As Boolean
If forms.Contains(From) Then
'Code of delete the message
End If
End Sub
How the delete message snippet should be?