Delphi APP opens in Door (ii) Android/ios set, Hello World

Source: Internet
Author: User

Delphi APP opens in Door (ii) Android/ios set, Hello World share:Share on FacebookShare on TwitterShare on Google_plusone_sharestated expiry Refer reads: 9047 發表時間:2014/05/12Tags: mobile learning App Delphi XE6 Android IOS

In the last issue, after we had the knowledge of Delphi and the installation, we would like to teach you to set up Delphi's development environment for Android and iOS, and teach you to write the first Hello World program.

Android Settings

1 After installing the program, you can see the Embarcadero RAD Studio XE6 folder in the beginning of the program, with Android SDKs in it, with Android AVD Manager and two tools for Android tools. Android Tools lets you manage the SDK version, and Android AVD Manager allows you to build a simulator to do tests.

2 after the installation, basically Delphi will set the part of Android, you can see from tools--and Options in the SDK Manager to pre-setup the Android part.

3 We can install a driver connection by the AVD Manager by setting up a simulator or Android device in the hand. It is important to note that currently Delphi supports only the following versions as well as the ARMV7 devices

iOS Settings

iOS development part, you need to have a Mac computer, and need to install Xcode (download address: https://developer.apple.com/xcode/), after the installation of command line Tools (download HTTPS ://developer.apple.com/downloads/index.action).

Then copy the radpaserverxe6.pkg from program Files\embarcadero\studio\14.0\paserver to your Mac for installation.

After the installation of the PASERVERXE6 program, you will need to set the password (must be set).

The first Hello World program

Open the Delphi Master program and set up a new case, File-Firemonkey Mobile Application-delphi

Select Blank Application Empty program

After the build is complete, you can see that the target platform of the project manager preset in the upper right corner is Android

After we've started, we're right-clicking on iOS Simulator to enter the properties setting

Drop-down Add New

Naming

Enter Remote machine (the computer IP of the Paserver program) and password

You can press test connection to make sure the connection is normal, press Finish

After the setup, click on the tool palette in the lower right corner to select the TButton

Drag the TButton onto the canvas and pull it to the size you like

Then, on the button, go to Code Editor two and enter Button1.Text: = ' Hello world ';

This program indicates that the button text (text) is changed to ' Hello World ' after clicking (click).

In the end, we press F9 to perform the status of the Android machine.

Then we're going to have the program run directly on the iOS emulator, go back to project manager and quickly iOS simulator to make it anti-black, which means running iOS.

Press F9 the same way, and at the end of the page we can see that the program is automatically executed to the iOS emulator.

Today we learned how to set up Android and iOS, and how to get the program running on two different platforms. In the next issue, we will continue to teach you to write the first computer program, to understand the use of components and to arrange the painting.

Delphi APP opens in Door (ii) Android/ios set, Hello World

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.