开发者

How to start an Activity from a dialed phone code (e.g. #120)

I am trying to launch my app from a dialed code (say #120) on the phone dialer. I believe I've seen some apps that do this already. So to launch the app, the user would go to th开发者_如何学Pythone phone and try to make a call to #120, which would open my activity instead of making a phone call to #120. Anyone with ideas on how this can be accomplished?


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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜