2

我正在尝试从电话拨号器上的已拨代码(例如 #120)启动我的应用程序。我相信我已经看到一些应用程序可以做到这一点。所以要启动应用程序,用户会去电话并尝试拨打#120,这将打开我的活动而不是拨打#120的电话。任何人都知道如何实现这一点?

4

1 回答 1

1

By registering an intent in the chain of responsibility for the dialer-action. The chain of responsibility is ran down from first to last entry, and each registered observer may choose to either handle the entry or pass it down to the next entry in the chain. That way, you could handle the code with one application and let the other applications handle the phonecall.

于 2011-08-26T16:25:03.093 回答