What is the best way to load an image inside an ImageView?
I’m currently using .setImageResource() to do this, but i’ve heard that ‘.setBitmap()’ is better, as you can make it not load the entire image in the memory before it resizes it. This post: Strange out of memory issue while loading an image to a Bitmap object
Which is the best, out of a device memory point of view? Which occupies less memory, which “stresses” the device the least?
Generally speaking, try not to use setImageResource() for larger images as this is executed on the UI thread (which may cause UI lag).
As for loading Bitmaps, I highly recommend this guide from Google. It covers asynchronous loading, using caches, general loading and much more. The tutorial came out within the last few months so uses the current best practices.