There are two situations when I download images, first directly from the Internet, and secondly I download images that are downloaded to the device. And whenever I upload, 8 ~ 9 out of 10 images are displayed, and 1-2 is missing. I see that decoding returned false and google'd with all my might, but I could not think of.
- WAIT_FOR_CONCURRENT_GC blocked 22 ms
- WAIT_FOR_CONCURRENT_GC blocked 20 ms
- GC_FOR_ALLOC released 718K, 31% free 9948K / 14256K, suspended 49ms, only 51ms
- D / skia: --- decoder-> decoded returned falseGC_CONCURRENT released 1370K, 30% free 10081K / 14256K, suspended 3 ms + 2 ms, only 33 ms
- GC_FOR_ALLOC released 916K, 30% free 10029K / 14256K, suspended 66 ms, only 67 ms
Here is the code that I use to download via Picasso:
Picasso.with(activity)
.load(path)
.placeholder(R.drawable.thumbnail_placeholder)
.resize(width,height)
.into(imageView);
Any ideas how to solve this problem? I call fit () / resize () every time I get images loaded onto the screen. Help evaluate, thanks in advance!
FYI, I test on both machines, the emulator and the real device Samsung Galaxy Tab 3 and it works without problems on the emulator, but problems arise on the real device.
UPDATE:
This caused the color space of the image, where the images that were not displayed were those that were in the YMCK color space.
source
share