Questions tagged [android-lru-cache]

LruCache holds strong references to a limited number of values. Each time a value is accessed, it is moved to the head of a queue. When a value is added to a full cache, the value at the end of that queue is evicted and may become eligible for garbage collection.

LruCache holds strong references to a limited number of values. Each time a value is accessed, it is moved to the head of a queue. When a value is added to a full cache, the value at the end of that queue is evicted and may become eligible for garbage collection.

109 questions
0
votes
0 answers

Android DiskLruCache supported versions?

I have a simply question. I'm developing an aplication wich loads images from a remote server (via http). I'm looking for a good way to cache this photos and I've read about LruCache and DiskLruCache. I'm very interested in the second one because It…
MBRebaque
  • 359
  • 2
  • 5
  • 14
0
votes
1 answer

Android LRU Cache not showing the correct bitmap?

I am making an android application where there are news articles with a thumbnail. Those thumbnails are loaded from network and stored in a LruCache with the URL as the key, and the bitmap as the value. private LruCache tCache; in…
Simo L.
  • 321
  • 1
  • 3
  • 20
0
votes
1 answer

How does Android system handle activities when it is stopped?

I am so curious about what will happen for the app's activities when the app is dismissed from the screen and the user switches to other apps. In the activity circle, the activity will reach onStop(), then how the system handle the activity before…
little-eyes
  • 945
  • 2
  • 9
  • 14
-3
votes
1 answer

android LruCache real device

I'm trying to create android application using RestFull web services when using and use Lrucahe to save images all application works done but when install application on real device threw an exception : java.lang.noclassdeffounderror…
1 2 3 4 5 6 7
8