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 Settings1 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 SettingsiOS 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 programOpen 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. |