开发者

disable incoming calls

is i开发者_开发知识库t possibe to disable incoming calls.


wow mate, your question is amazingly detailed, I almost feel like my answer should only say:

Yes

Luckily for you I'm in a good mood so I'll explain..

Basically, as far as I know it is not possible from typical android application.

Workaround is to enable airplane mode. It will disable all communication so as long as app is running no calls would get through. Also depends whether or not you need other networks running (Wifi etc).

But to be honest.. why would you want to do that? It should be users choice if they want to answer incoming call or not.


I've never tried, but it looks like you might be able to do something by using the TelephonyManager. You're going to need to have the MODIFY_PHONE_STATE permission set as well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜