When using Delphi to do mobile development, some cases may require us to pack some files into the installation program, such as Web pages, pictures, database files, and so how to achieve it
1. First, open the menu project-deployment
2. Click the Add button to select the file you want to add (the file is best placed in the project directory so that it can be found even if the project is open on another computer)
3. Modify the remote Path:
When developing Android programs, Remote path is modified to assets\internal\
When developing iOS programs, Remote path is modified to startup\documents
4. How to use files in your program:
First, you need to reference the System.ioutils file so that you can use the Tpath class
Tpath.combine (Tpath.getdocumentspath, ' a.htm ')
Or
Tpath.getdocumentspath + Pathdelim + ' a.htm '
Get the absolute path to the file, and then you can use this path to manipulate the file.
-----------------------
Source: Reprint
Delphi Mobile Development, how to package files in a program