0

Background

I'm investigating how CallScreeningService works (sample repository here, easier one here, if anyone wishes to check out).

The problem

I've noticed that for callDirection there is incoming, outgoing, and "DIRECTION_UNKNOWN" :

Indicates that the call is neither and incoming nor an outgoing call. This can be the case for calls reported directly by a ConnectionService in special cases such as call handovers.

I don't understand the meaning of this.

What I've tried

I tried to see if I can cause normal phone calls to trigger it, but of course it's not as such.

The question

What kind of special case is it? What is "call handovers" ?

android developer
  • 114,585
  • 152
  • 739
  • 1,270
  • A call handover is explained further [here](https://developer.android.com/reference/android/telecom/Call#handoverTo%28android.telecom.PhoneAccountHandle,%20int,%20android.os.Bundle%29). Short description is "A call handover is the process where an ongoing call is transferred from one app (i.e. ConnectionService) to another app." More details are included in the referenced documentation. – George Mulligan Sep 30 '20 at 13:42
  • Can you please explain an example? A scenario? Is it a real phone call? – android developer Oct 01 '20 at 07:23
  • Does this make things clearer https://stackoverflow.com/questions/52134207/android-handover-incoming-call-to-other-calling-app? – M.Abdeldayem Oct 10 '20 at 10:54
  • @M.Abdeldayem Not sure. It means that an app handles the phone call (here: https://developer.android.com/reference/android/telecom/Call#handoverTo(android.telecom.PhoneAccountHandle,%20int,%20android.os.Bundle) ) ? But then how come it's "unknown" ? It should still be incoming/outgoing, just from another app, no? Which apps can do it? What is the exact scenario? – android developer Oct 10 '20 at 14:02

0 Answers0