I use LruCache for caching images in my application following the example from the documentation . My application can work starting with the version of Android 1.6, so for LruCache you have to connect the support library. Is it possible to replace LruCache with something to remove the library? Allow you to reduce the size of the APK.

  • one
    [offtop] 1.6? Are you seriously? Now devices with 2.2 make up less than 2 percent of the total number of devices, and 1.5-1.6 are not included in [statistics] [1] at all. Not even sure if Google Play will work on such a device at all, not to mention the installation required by many Google Play Services / Framework applications. [/ offtop] [1]: developer.android.com/about/dashboards/index.html#Platform - falstaf
  • one
    And by sabzh - here's [source] [1] LruCache . If you look into the inside, you will see that there is no difficulty in porting this, and in implementation from scratch, too, in fact. [1]: grepcode.com/file/repository.grepcode.com/java/ext/… - falstaf
  • 2
    By the way, running the same ProGuard with the shrinking option enabled will give you the same effect in terms of reducing the size of the final apk - deletes all unused classes from the support library , leaving only the used, I mean LruCache . - falstaf
  • Thanks for the info, this is what you need. - BArtWell
  • A stronger reduction in size will give the division into two versions of the application - one for the old two-minute, the other for the new. My observations show that a lot of places take pictures and other resources. On android 1.6 with a screen of 320x240 pictures for xdpi are not needed. - KoVadim

0