As the title says, loading bitmaps into TListViewItems causes ANDROID apps to crash. Works for iOS, but not for Android. Picture Paths are CORRECT. For simplicity sakes, you can just drop a TImage onto the form, and manually set one image to it, then try instead of going through a loop as I did, just set LItem.bitmap := TImage1.Bitmap. Is it something I am doing wrong? or can someone confirm this and possibly help me out with a work around for now.

Delphi XE7 Android

if MenuList.Items.Count=0 then  // load menu options + icons
  begin
    for i := 0 to Length(PicturePaths)-1 do
    begin
      LItem:=MenuList.Items.Add;
      LItem.Text := PictureNames[i];
      LItem.Bitmap.LoadFromFile(TPath.GetHomePath+PathDelim+PicturePaths[i]);
    end;
  end;

Related posts

Recent Viewed