Code example for Map

Methods: clear

0
 
    return contactPhoto;
  } 
 
  public static void clearCache() { 
    localUserContactPhotoCache.clear();
  } 
 
  private static Bitmap getContactPhoto(Context context, Uri uri) {
    InputStream inputStream = ContactsContract.Contacts.openContactPhotoInputStream(context.getContentResolver(), uri);
 
    if (inputStream == null) return ContactPhotoFactory.getDefaultContactPhoto(context);
    else                     return BitmapFactory.decodeStream(inputStream);
  } 
}