I have successfully written the code to end calls programmatically. But before the call ends, I want to retrieve the caller's name to log it. How would I retrieve the caller's name? Note, the caller is presumed to be within the contact list.
I've already come across How to retrieve the contact name from incoming call number?, and I didn't find the answer satisfying. It has no context, and very little information.