Emergency call: there is no way to detect and help the user

My application blocks unwanted calls and may accidentally prevent the emergency service from calling back.

To solve this critical problem, I should immediately detect an outgoing emergency call when it is just dialed, and immediately stop my call blocking. Yes, in fact, I can detect an outgoing call that listens for events with the phone turned off, but I can check if it was an emergency call only after it was recorded in CallLog. This helps a little, but does not solve the problem.

Perhaps not only the telephony application will be safer if it can detect an emergency call and pause it. We have "onLowMemory ()", why not "onEmergencyCall ()".

Would thank for any advice that would help solve this problem.

+3
source share
1 answer

The event NEW_OUTGOING_CALLhas an additional call PHONE_NUMBERthat contains the outgoing number.

+3
source

Source: https://habr.com/ru/post/1778276/


All Articles