Delphi Mobile Development, how to package files in a program

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.