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.
source
share