Android: How to get contacts pictures from Call log query
<p>I have created an activity that displays the phone call log (just like the native call log). Now i want to display the contact picture next to each entry. To get the last week call log i have used the following query:</p>

<pre><code>String[] projection = new String[]
        { Calls.DATE, Calls.NUMBER, Calls.DURATION, Calls.CACHED_NAME, Calls.TYPE };

    Cursor mCur = activity.managedQuery(CallLog.Calls.CONTENT_URI, projection, Calls.DATE + "&gt;?", new String[]
        { String.valueOf(weekAgo.getTime()) }, Calls.DATE + " DESC");
</code></pre>

<p>Cant find a good way to get each entry picture. With this query I get the log data without the indication for the contact id or photo id. </p>

<p>Any way to get the contact photo as a Bitmap from the data I do have (like the phone number) ? I want the picture as shown on the native android call log (even if it's a synced one...)</p>

<p>I am using SDK 8. (ContactsContract)</p>
