简体   繁体   English

如何在Android中导致手机状态繁忙?

[英]How can I cause a busy phone state in Android?

Can anyone tell me how can I cause a busy phone state in Android. 谁能告诉我如何在Android中导致手机繁忙。 I'm developing an application about contacts. 我正在开发有关联系人的应用程序。 Help me please, thanks! 请帮助我,谢谢!

You can't . 你不能

Modem is the one that is reporting the states, and you can't override this state from Android side. 调制解调器是报告状态的一种,您不能从Android端覆盖此状态。
Even more, modem is always closed proprietary source and is located on a separate silicon (but it might be placed in the same package). 更重要的是,调制解调器始终是封闭的专有资源,并且位于单独的硅片上(但可能放置在同一包装中)。

The simplest way to implement a blacklist is to drop the calls. 实现黑名单的最简单方法是挂断电话。 This is what most of the available applications on the market are doing. 这就是市场上大多数可用应用程序正在执行的操作。
Some operator supports blacklisting on their side, in this case you need to know what AT commands are used to add/remove blacklisted numbers. 一些运营商支持将其列入黑名单,在这种情况下,您需要知道使用哪些AT命令添加/删除黑名单号码。

Cyanogen mod is open source, and they have implemented a blacklist on Android side. Cyanogen mod是开源的,他们已经在Android方面实现了黑名单。 If you need a quick reference - have a look there . 如果您需要快速参考-在那里看看。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM