Android Problem with a Bitmap Container

Hi, 


We have further investigated this here and found out the following QC report:

https://quality.embarcadero.com/browse/RSP-13944

A possible workaround is to use a memory stream to assign the bitmap to the fill. When assigning, the data is not copied, but referenced instead, which is the cause for the disappearing bitmaps after closing/reopening the application.

      ms := TMemoryStream.Create;
      try
        case Multi[Rw,Cl] of
          BL:ImageList.FindBitmap('BL').SaveToStream(ms);
          TW:ImageList.FindBitmap('TW').SaveToStream(ms);
          DW:ImageList.FindBitmap('DW').SaveToStream(ms);
          TL:ImageList.FindBitmap('TL').SaveToStream(ms);
          DL:ImageList.FindBitmap('DL').SaveToStream(ms);
        end;

        R.Fill.Bitmap.Bitmap.LoadFromStream(ms);
      finally
        ms.Free;
      end;

We are currently investigating a workaround on component level.