One of the biggest challenges with our application is to handle images in an efficient way because there are a lot of different perspectives that impact the resulting application. This is a particular topic that covers almost everything we discussed in previous chapters:
Bitmaps need to be in a layout to be displayed correctly. Hence, what we discussed in Chapter 2, Efficient Debugging, is particularly important here.
Bad bitmap handling can lead to memory issues due to leaks or because bitmaps are used badly as variables instead of being read when needed. Hence, Chapter 4, Memory, can be helpful to keep in mind key concepts while saving and reading large images.
Too many times, we try to process significant amounts of data coming from images on the main thread; we will use the topics discussed in Chapter 5, Multithreading, to understand how to handle bitmaps efficiently with no impact on user experience.
Most of the time, images come from a remote resource. We will discuss how to retrieve...