Android Question Speed up bitmap preview

Dario126

Member
Licensed User
Longtime User
I have one folder with large photos used by app. Photos are JPG with size >5Mb, and there is 5-30 photos in such folder.

I use this method to load preview into listview and show it to user for selection:

B4X:
iListView.AddTwoLinesAndBitmap(item, "", LoadBitmapSample(SourceFolder, item, 50, 50))

But this is quite sluggish (slow), I presume because of size which app must read each time. How android handles this in their own "galery" folder? I presume it makes thumbnails? How do I make them, and take care that is compatible with device system, so if user looks this folder through standard device gallery application, it thus not get original images and small preview images but only one?
 
Top