Mute (or disable) phone calls while app is running

核能气质少年 提交于 2019-12-11 14:55:23

问题


Is it possible to mute the phone while my app is active? Or to even disable the phone call screen?

My use case is following:

I have a music player in my app and it's a fitness app, so the user does eventually not want to be disturbed. So I want to allow him to activate a "do not disturb" mode, which disables incoming call notifications, at least the sound.

What I need is following:

Bluetooth must work, because of the headphones, so plane mode would not even be a manual workaround

Can this somehow be achieved?

来源:https://stackoverflow.com/questions/22411581/mute-or-disable-phone-calls-while-app-is-running

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