java – Loading Bitmap Images-ThrowExceptions

Exception or error:

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 solve:

Leave a Reply

Your email address will not be published. Required fields are marked *