The old cat summarizes how to publish files to the phone

Source: Internet
Author: User

firemonkey[Mobile Development]165232328The group master old Cat summarizes how to publish files to the mobile phone, very practical, posted over. This group under the management of the old cat, there are a large number of the use of Delphi to develop the app may encounter problems of the solution, experience, there are a lot of problems in the implementation of the program, it is worth to join, but in the inside do not talk nonsense, there are questions can ask, but must be able to tell the problem clearly again, otherwise, It is a trivial thing to be banned, and to be kicked is common.

(* ************************************************ *)
(*                         *)
(* love to eat pig head meat & Flying Wang 2015-04-21 *)
(* Please do not remove the above copyright notice.) *)
(*                         *)
(* ************************************************ *)

After opening the project.

Project-Deployment
In the Open Interface

Select configuration

In the Deployment interface
"Do not" select all configurations-a platform
Must use
Debug Configurations-a platforms
And
Release Configurations-A platform
Add, otherwise no effect

Add or delete files in this state. Don't delete the existing.
Debug Release "Each plus" once.
Each platform is added by default.
Select Platforms column, point ... Pop up the dialog box to get rid of the platforms you don't need, such as just leaving Android and iOS.
Tick or "tick" is valid for all platforms. If you do not want to publish certain items, you can remove the tick, for example, you can remove the x86 version of So's release, which is good.

You must specify a publishing path for the new file.
Select each platform separately (Debug Release also selects separately) and then edit the RemotePath column.

Note that the paths for each platform are different
It is inaccessible under Android. \ or \ or directly at the beginning of the directory name.

Under Android:
The built-in path must be the path below assets\internal. such as Assets\internal\a.png,assets\internal\b\c.png,
The external path may be the other path below the assets. such as Assets\a.png,assets\b\c.png,
The root directory of your installation results should be library\ below.

Under IOS:
The path must be startup\documents\

Assets\internal\ Correspondence Getdocumentspath
Assets\ Correspondence Getshareddocumentspath
Library\ corresponds to the root directory of Getlibrarypath that is the result of your installation after you install it.
Note case. It's wrong to say you don't know LINUX.

Startup\documents\ Correspondence Getdocumentspath

Note that Getdocumentspath is cross-platform and Gethomepath is "no".
For example, using
Includetrailingpathdelimiter (System.IOUtils.TPath.GetDocumentsPath) + ' your file. extension ';

For other directories, refer to the path to the phone where the group share is published. jpg


The Tpath is in the system.ioutils unit.
In the configuration with \ In the code please use Pathdelim
Includetrailingpathdelimiter can guarantee that Path is returned instead of Dir.

Always note that the phone is case sensitive. The Expandfilenamecase function has bugs under Android.

The path to the so file file: Edit the RemotePath column. The path is (xe5) Library\lib\armeabi (Xe6 or above) library\lib\armeabi-v7a
The so of the above path is generally used for jar loading.
Self-loading can be used Loadlibaray or Dlopen. Remember to use the corresponding Freelibaray and Dlclose
You can also define a function interface for so, just as you would define a DLL. So you don't have to write code to load it.
If you use only yourself, you can publish to other paths that you can access. However, only write code is loaded, and the path is written in full.


Under Android, you want to confirm the location of the installation. You can use the ADB command to view.

I typically use the ADB command line feature in the 3,601-key root software tool.

SU//This command must have, otherwise you can not see anything.
CD/
CD Data/data
The LS command can view the directory.
Find your project catalogue and proceed to CD LS.

Now everyone can also go to the Group sharing download Android Console + thread + keyboard. apk

Use this tool to enter the command line.
The procedure is the same as above, and the SU begins.


If I can't trust my tools. or want to be more convenient. Can be downloaded to a group share

R.b. File Manager Root Browser v2.2.0 Simplified Chinese version. apk

If you use a variety of browsers can not see the content.

Indicates that your machine is not rooted, or that you have not given these software root privileges.


Please note: Debug Release "Each plus" once, the path is set one time.
If you want to delete the items you added, Debug Release "each delete" once.


For projects that have been upgraded in an older version or copied elsewhere.
The release (deployment) information for the project requires a "reload". Deployment needs Revert to Default (especially your Android APP to exit after displaying the boot image).
À la carte project->deployment, open the deployment subwindow, point to the Revert to Default button, which is the left curved arrow
The Revert to Default dialog box appears:
Select the first item "Revert for all configurationsthe active platform", click OK.
It is not recommended to choose Keep added Files.

Http://blog.sina.com.cn/s/blog_44fa172f0102vy9c.html

The old cat summarizes how to publish files to the phone

Related Article

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.