简体   繁体   English

Android Dialer和Phonebook的意图拦截

[英]Android Dialer & Phonebook interception of intents

I have two simple questions: 我有两个简单的问题:

  • is it possible in the Android Dialer application to intercept the ACTION_CALL Intent and offer the user the number to be dialed with another application (that is when the user clicks 'Dial' button). Android Dialer应用程序中是否有可能拦截ACTION_CALL Intent并为用户提供要使用另一个应用程序拨打的号码(即当用户单击“拨号”按钮时)。 I know Dialer is custom app on every ROM so I suppose this is impossible? 我知道Dialer是每个ROM上的自定义应用程序,所以我想这是不可能的吗?
  • is it possible when the user selects a contact from the Phonebook/Contacts and presses Dial for particular number (maybe predefined with some prefix or suffix), the app to recognize and to complete the dialing with third party app and not the default Dialer? 当用户从“电话簿” /“联系人”中选择一个联系人并按“拨号”以选择特定号码(可能带有一些前缀或后缀)时,是否可以识别并完成与第三方应用程序而非默认拨号程序的拨号?

Thanks 谢谢

Yes it is possible to intercept the intent and let your app show in the dialog prompting the user to continue the call with the default dialer or your own. 是的,可以拦截意图并让您的应用显示在对话框中,提示用户使用默认拨号器或您自己的拨号器继续通话。 This might be of help : 这可能会有帮助:

Android dialer application Android Dialer应用程序

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

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