I need to use LruCache (a api from Android 3.1) in Android 1.6+
I use Android Support Library v4 that has support to LruCache (Acording with this manual http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html#memory-cache ) but the problem is that i get the NoClassDefNotFoundError all the time. I include the support.v4 library in my project (in other activity i use ViewPager... )
Anyone have a idea of why this happend?
To avoid the problem i included the LruClass.java in my own project and the NoClassDefNotFoundError not apear anymore
The LruClass.java is located in:
Android sdk location /extras/android/support/v4/src/java/android/support/v4/util/LruCache.java