Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

disable the notification of sms in android [duplicate]

Tags:

android

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

like image 610
vicky Avatar asked Feb 17 '11 20:02

vicky


1 Answers

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.

like image 144
Christopher Orr Avatar answered Sep 30 '22 12:09

Christopher Orr