private int sizeOf(Bitmap bitmap) {
    return bitmap.getByteCount() / 1024;
  }
Implementation of LRU cache (String to Bitmap) with a method to grab the oldest Bitmap.
tileview/src/main/java/com/moagrius/tileview/MemoryCache.java