Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9239779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:03:56+00:00 2026-06-18T08:03:56+00:00

I am trying to use a disk cache (not a memory cache) so i

  • 0

I am trying to use a disk cache (not a memory cache) so i download my images from an urls and put it in a grid view. I want to download my images only one time.

I found this example (bitmapFun) in google site: http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html

I found this example a bit complicated.
There are many objects in util package (AsyncTask, DiskLruCache, ImageCache, ImageFetcher, ImageResizer, ImageWorker, Utils)

Is there a way or a tutorial that show how can i use a disk Lru cache without using all those object.
I don’t want to resize my image and i was not able to remove ImageResizer class.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:03:57+00:00Added an answer on June 18, 2026 at 8:03 am

    Here you have good answer :Android image caching. Quotation :

    “Consider using Universal Image Loader library by Sergey Tarasevich. It comes with:

    //Multithread image loading. It lets you can define the thread pool size
    //Image caching in memory, on device's file sytem and SD card.
    //Possibility to listen to loading progress and loading events
    

    Universal Image Loader allows detailed cache management for downloaded images, with the following cache configurations:

    UsingFreqLimitedMemoryCache: //The least frequently used bitmap is deleted when the cache size limit is exceeded.
    LRULimitedMemoryCache: //The least recently used bitmap is deleted when the cache size limit is exceeded.
    FIFOLimitedMemoryCache: //The FIFO rule is used for deletion when the cache size limit is exceeded.
    LargestLimitedMemoryCache: //The largest bitmap is deleted when the cache size limit is exceeded.
    LimitedAgeMemoryCache: //The Cached object is deleted when its age exceeds defined value.
    WeakMemoryCache: //A memory cache with only weak references to bitmaps.
    

    A simple usage example:

    ImageView imageView = groupView.findViewById(R.id.imageView);
    String imageUrl = "http://domain.com/image.png"; 
    
    ImageLoader imageLoader = ImageLoader.getInstance();
    imageLoader.init(ImageLoaderConfiguration.createDefault(context));
    imageLoader.displayImage(imageUrl, imageView);
    

    This example uses the default UsingFreqLimitedMemoryCache.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
I'm trying to implement a MongoDB / Memory combined Output Cache Provider to use
I'm trying to use a PEM(X.509) certificate (stored in a privateKey.pem file on disk)
I am trying to use the perfmon windows utility to debug memory leaks in
I am trying to use the disk based url cacing built in to iOS
I am trying to utilize shared function (in main thread) and use it from
Trying to use Excel VBA to capture all the file attributes from files on
I'm trying to serialize an object cache to disk so it can be loaded
I have been trying to use virsh attah-disk to attach a qcow2 file as
I'm trying to use Kryo to read/write objects to disk: http://code.google.com/p/kryo/ Couple questions: How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.