Jump to content

Yaron

Members
  • Content Count

    277
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Yaron

  1. Yaron

    Where do I store my own images on Android?

    Alternatively, you can store your images as resources (project / resources and images) and then use this function to load the images from the resource: procedure LoadImageFromResource(ResourceName : String; TargetBitmap : TBitmap); var rStream : TResourceStream; begin If TargetBitmap <> nil then Begin Try rStream := TResourceStream.Create(hInstance,ResourceName,RT_RCDATA); Except rStream := nil End; if rStream <> nil then Begin Try TargetBitmap.LoadFromStream(rStream); Finally rStream.Free; End; End; End; end; That way you don't care about paths.
×