Home » Java » java – Loading Bitmap Images-Exceptionshub

java – Loading Bitmap Images-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

I am making a custom gallery and i am loading all images from mobile. I have almost 4000 images and i load all images once. But the issue is it takes too much time in loading images.

Here is code i am using to get images:

Bitmap bitmap = MediaStore.Images.Thumbnails.getThumbnail(getApplicationContext().getContentResolver(), ids[i], MediaStore.Images.Thumbnails.MICRO_KIND, null);

I have tried many methods but unable to resolve loading. Any help will be appreciated

How to&Answers: