android is CallLog.Calls._ID the same with the contact id?

I created a log call list. I want to add the picture to each contact in ann imageview. I would like to ask if

Cursor managedCursor = managedQuery(CallLog.Calls.CONTENT_URI, null,
                null, null, "DATE DESC");
int id = managedCursor.getColumnIndex(CallLog.Calls._ID);

is the same with ContactsContract.Contacts._ID

If this two are not the same how can I obtain the contact is using managedCursor?


No it isn't. It is just the ID of the row. Anyway you can read the phone number from the NUMBER field and obtain the contact id with this code:

Need Your Help

C++ getline() reading in line of file infinitely loops through file

c++ infinite-loop getline printf

I'm trying to read in a line of the file, print out parts of the line, and repeat the process for the next line of the file.

Storing arrays in localstorage

javascript arrays html5 jquery-mobile local-storage

I'm building an app with It's basically a search app that returns results and then you can click into the results to see details.