Possible Duplicate:
Can we delete an SMS in Android before it reaches the inbox?
i am working on android sms app and i just want to disable the sms notification for particular messages. I had tried shared preference to uncheck the sms notification but it didn't work;after that i tried to update the message status using broadcast receiver onreceive method but then also notification appers....can someone suggest me how to disable the sms notificatioin of native android sms app using shared preference or any other way
Thank you in advance
You could intercept the SMS in a BroadcastReceiver
, abort the broadcast to prevent any SMS apps from seeing it, then manually insert the SMS into the SMS ContentProvider
.
But then that's terrible, fragile, uses non-public APIs and will possibly break third-party SMS applications.
So basically, no you can't do this properly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With