title: Loading contact picture via LOOKUP_KEY and openContactPhotoInputStream convenience method
body: <p>I'm modifying my app to store information on contacts using LOOKUP_KEY instead of _ID as suggested by the API docs. The only problem I'm having is that I'm no longer able to load the contact's photo.</p>
  
  <p>The problematic code is this one:</p>
  
  <pre><code>InputStream s = ContactsContract.Contacts.openContactPhotoInputStream(getContentResolver(), contactUri);
  </code></pre>
  
  <p>This is returning the following error: <code>java.lang.IllegalArgumentException: URI: content://com.android.contacts/contacts/lookup/1424i118.2312i1220228108/photo</code></p>
  
  <p>The contactUri that I am using as argument is acquired by the following: <code>Uri contactUri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, contact_key);</code></p>
  
  <p>and in this example, <code>contact_key</code> is <code>1424i118.2312i1220228108</code></p>
  
  <p>Based on the API docs, this helper method should work with both <code>CONTENT_URI</code> or <code>CONTENT_LOOKUP_URI</code>, which I am using.</p>
  
  <p>Any ideas? Thanks.</p>