W
W
Wade2k2019-04-03 13:19:54
Android
Wade2k, 2019-04-03 13:19:54

How to get contact names from CallLog.Calls list?

It is necessary to match the numbers from the calllog with the names from the book. I tried to pull it out along with the CallLog.Calls.CACHED_NAME number, but it randomly happens to be empty for a saved contact.
It turns out that for each number from the list of calls I need to pull ContactsContract.Contacts.DISPLAY_NAME?
Or, when loading the application, copy the notebook somewhere to your hashmap and quickly get it from there?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question