only hide notifications for SMS from specific no or stop notification sound(or mute it) for 1-2 seconds?

随声附和 提交于 2019-12-24 19:03:05

问题


My application uses SMSs for data exchange between my android app and a device. The device will have a sim card in it, which will send a lot of regular SMSs to my App(i.e. to my paired sim no).

The issue is, a lot no messages are bothering my App users and they are getting irritated.

I know, from KITKAT 4.4, I can't delete/write a SMS from provider. But can I just prevent notifications(specially voice), then vibration and then if possible status bar notification.

And I don't want to create an entire SMS application as a default SMS app.

I found a lot of question asking how to remove a SMS, but I just want to prevent it bothering the user by preventing/hiding notifications only.

And if above not possible then can I create a default SMS app that will only read/receive SMS but for other parts like MMS and sending SMS's, will pass that functionality to other apps like default messaging app in device or hangout app etc.

Because what I want is just to prevent notification when SMS comes from specific no, let it then show in default SMS app.

At least can i just stop notification sound(or mute it) for 1-2 seconds?

来源:https://stackoverflow.com/questions/33527581/only-hide-notifications-for-sms-from-specific-no-or-stop-notification-soundor-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!