Intercept incoming SMS

564 views Asked by At

I'm developing an app for Symbian device that need to silent filter incoming SMS, and the following link is the code that does that:

http://symbian.devtricks.mobi/tricks/silent_receiving_of_sms_messages/

another similar code on Nokia

http://wiki.forum.nokia.com/index.php/SMS_Utilities_API

It work, but the problem is after I reboot my phone those SMS has been intercept will still add to inbox. I know on the site they did mention to use KIoctlReadMessageSucceeded to prevent that, which I did; but the problem still there. Tried both code but still same result. Is there anything I'm missing?

Another problem with that code is that it will no longer work after a call came in, sms won't be intercept anymore after that. Is that a way to fix that?

Thanks, help would be greatly appreciated.

1

There are 1 answers

2
KevinD On

We regards to not intercepting SMS after a reboot, are you re-starting your executable (and hence the listener) after a reboot? You can do so with the Nokia startup list management API.

With regards to failing after a call has come in, this sounds like your executable may be panicing (and thus stopping listening). Have you checked to see if it is panicing and whether it is still running after a call has come in? I've done this kind of application before, and never had any problem with incoming calls.