I use Picasso to load images in the navigation view. When downloading images from an Internet, navigationview quickly picks up the picture substitutes where you want. No problems. But if I specify the choice of pictures from the local storage, I mean from the SD card, then the navigationview starts to slow down. Even gives such an error.
Throwing OutOfMemoryError "Failed to allocate a 23970828 byte allocation with 16777216 free bytes and 22MB until OOM" It turns out that the trouble with memory. Tell me how to solve the problem?