public static void cleanupCache(){
  for (  SoftReference<ReplaceableBitmapDrawable> reference : sImageCache.values()) {
    final ReplaceableBitmapDrawable drawable=reference.get();
    if (drawable != null)     drawable.setCallback(null);
  }
}

public static void cleanupCache ( ) { for ( SoftReference < ReplaceableBitmapDrawable > reference : sImageCache . values ( ) ) { final ReplaceableBitmapDrawable drawable = reference . get ( ) ; if ( drawable != null ) drawable . setCallback ( null ) ; } }
removes all the callbacks from the drawables stored in the memory cache . this method must be called from the ondestroy ( ) method of any activity using the cached drawables . failure to do so will result in the entire activity being leaked .
