简体   繁体   中英

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). I know Dialer is custom app on every ROM so I suppose this is impossible?
  • 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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