In the application at startup, images are loaded by links in a ListView consisting of an ImageView . How is it better to save these images so that when you restart them again, do not download them? Yes, so as not to save the image whose dimensions may be several megabytes.

BitmapFactory.decodeStream(in) compresses the image, if so how can you find out how much the image weighs after compression.

    1 answer 1

    For downloading and caching images, there are many ready-made solutions in the form of libraries. Use them, do not write bicycles:

    1. Universal image loader
    2. Picasso
    3. Fresco
    4. Volley

    thousands of them