SmsInterceptor Not working

Fabrice La

Active Member
Licensed User
Longtime User
My app :
Sub Process_Globals

End Sub

Sub Globals

End Sub

Sub Activity_Create(FirstTime As Boolean)
DemarreSMS
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

Sub MessageReceived (From As String, Body As String) As Boolean
Msgbox("From " & From & " Text " & Body, "Title")
End Sub
Sub DemarreSMS
If SMSService.ServiceRunning = False Then
StartService(SMSService)
SMSService.ServiceRunning = True
ToastMessageShow("Running in background", True)
End If
End Sub


'Service
Sub Service_Create
SI.Initialize2("SI", 999)
Log("Service initialized")
End Sub

Sub Service_Start (StartingIntent As Intent)
Log("Service Started")
End Sub

Sub Service_Destroy
SI.StopListening()
Service.StopForeground(1)
End Sub

Sub SI_MessageReceived (From As String, Body As String) As Boolean
Log("Message Received From: " & From)
ToastMessageShow(From, True)
Dim Writer As TextWriter
Log("Toast shown")
If From ="+xxxxxxxxxxxxxxx" Then
Writer.Initialize(File.OpenOutput(File.DirDefaultE xternal, "Body.txt", True))
Writer.WriteLine(Body)
Writer.Close
End If
Return True

My app return True but still handcent take the sms ??
 
Is it in Manifest XML that I have to create :
<intent-filter android:priority="2147483647">
android.provider.Telephony.SMS_RECEIVED are delivered as an "ordered broadcast"
<intent-filter/>

or the app:
SI.Initialize2("SI", 2147483647)

Haw works App (cerberus, ...) against thief that be able to intercept SMS avec order (to delete, take photo, ...) without to see the SMS (Handcent, ...)
 
Upvote 0

Similar Threads

Replies
1
Views
3K
Replies
7
Views
5K
Replies
10
Views
6K
  • Question Question
Android Question smsInterceptor
Replies
4
Views
4K
Back
Top