How do we get the list of all calls and their states (Offhook/Ringing) in Android?

resources

#1

I looked at the documentation that Android provides that helps us determine what is the current Phone call state (https://developer.android.com/reference/android/telephony/TelephonyManager).

There are 3 phone call states that declared in TelephonyManager:
CALL_STATE_IDLE: No phone call exists or a phone call has just finished.
**CALL_STATE_OFFHOOK:**At least one call exists that is dialing, active, or on hold, and no calls are ringing or waiting.
CALL_STATE_RINGING: A new call arrived and is ringing or waiting. In the latter case, another call is already active.

Is there any way that I can determine the state of each call individually?
Many thanks!