kc ochibili
kc ochibili

Reputation: 3131

is it neccasary to call LruCache.evictAll(); in onDestroy() method?

For better memory management, do i need to call LruCache.evictAll(); when finishing an activity or does android take care of that?
(my LRuCaches caches images in a listView)

http://developer.android.com/reference/android/util/LruCache.html#evictAll()

Upvotes: 0

Views: 940

Answers (1)

Sandro Machado
Sandro Machado

Reputation: 10205

No, you only should do that if you really want for some reason clear the cash. LRU should take care of that for you if necessary.

Upvotes: 1

Related Questions