D Dario126 Member Licensed User Longtime User Jun 25, 2014 #1 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: Code: Copy 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?
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: Code: Copy 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?
Erel B4X founder Staff member Licensed User Longtime User Jun 25, 2014 #2 Note that you should use dip units (50dip). The gallery app probably gets the thumbnails from the media store: http://developer.android.com/reference/android/provider/MediaStore.Images.Thumbnails.html Upvote 0
Note that you should use dip units (50dip). The gallery app probably gets the thumbnails from the media store: http://developer.android.com/reference/android/provider/MediaStore.Images.Thumbnails.html