title: pick photo from contacts
body: <p>I want to pick photo from contacts . I got below code from stack overflow , but what are the paramaters do I need to pass for the method? Please help me</p>
  
  <pre><code>   public static Bitmap loadContactPhoto(ContentResolver cr, long  id) {
  
              Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, id);
              InputStream input = ContactsContract.Contacts.openContactPhotoInputStream(cr, uri);
              if (input == null) {
                  return null;
              }
              return BitmapFactory.decodeStream(input);
      }
  </code></pre>