How can I code in Android such that my app can analyze an incoming SMS and perhaps block it or do something(maybe move to a different SMS folder) BEFORE the SMS actually raises a notification telling the user of a new SMS? I would target Android 2.1 and above.
I would want to analyse incoming SMS for user specified spam words, and if found would want to delete/mark as read/move the message to a different folder.
I use this code, as a BroadcastReceiver:
remember to add it in manifest and add a higgest priority (100) for broadcast or sms will go first to inbox and get the alert notification.
Hope it helps you.