How To Get Current Phone Number Connected To Call

To get the current phone number already connected to the call you need to use Call.Details#getHandle().

So inside your onScreenCall :

@Override
public void onScreenCall(Call.Details callDetails) {
   Log.i("Phone number", callDetails.getHandle().toString());
}

See Full Answer here

Written on July 26, 2019