[LAMW]How to read all the thumbnails saved in the system database? lazarus / 43-Android ---------------------------------------------------------------------- lazpas · 2022-09-15 06:38 Hi,guys How to read all the thumbnails saved in the system database? According to the data, it is in the data/data/android.providers.media/database/ folder. Thanks. ---------------------------------------------------------------------- lazpas · 2022-09-19 01:18 I found this javacode,here https://www.geeksforgeeks.org/how-to-build-a-photo-viewing- application-in-android/ How do it with lamw? Thanks ---------------------------------------------------------------------- jmpessoa · 2022-09-19 23:09 QuoteI found this java code,here..... But in that code the real images are saved in SDCard as you can read on "a method to get all images from our external storage." and "thumbnails" are just a preview..... is this what you want to implement? ---------------------------------------------------------------------- lazpas · 2022-09-20 00:43 hi, I'm planning to write an image browser that needs to read all the images first and display them in a list (thumbnails of a specified size), and when a thumbnail in the list is clicked open another window to display the real size images. If you directly read the real-size image and convert it to the specified size, the speed is very, very slow. ---------------------------------------------------------------------- jmpessoa · 2022-09-25 23:01 Well, now you can use "jImageFileManager" component  to load a image as "thumbnail".... Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  procedure TAndroidModule1.AndroidModule1JNIPrompt(Sender: TObject);begin   //only test...   ListView1.Add('Item 1');   ListView1.Add('Item 2');   ListView1.Add('Item 3');   ListView1.Add('Item 4');   ListView1.Add('Item 5');   ListView1.Add('Item 6');end; procedure TAndroidModule1.ListView1DrawItemBitmap(Sender: TObject;  itemIndex: integer; itemCaption: string; out bimap: JObject);begin  if itemIndex = 1 then   //only test ....  begin    bimap:= ImageFileManager1.LoadThumbnailFromAssets('lemur_funny.png', 72, 72);  end;end;   or Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TAndroidModule1.AndroidModule1JNIPrompt(Sender: TObject);begin   //only test...   ImageView1.SetImage(ImageFileManager1.LoadThumbnailF romAssets('lemur_funny.png', 144, 144));    //or .... here you need handle permissions!   //ImageView1.SetImage(ImageFileManager1.LoadThum bnailFromFile(Self.GetEnvironmentDirectoryPath(dirSdCard)+ '/lemur_funny.png', 144, 144));end; ---------------------------------------------------------------------- lazpas · 2022-09-26 00:35 Thank you,jmpessoa. I will try it.