To develop a FireMonkey Mobile App, you can start with a mobile application project template. I chose the "Blank Application" template for my first app.
Next, I placed the 3 components on my main form.
I double clicked on the button to bring up the code editor and added the one line of code inside the Button’s onClick event handler to take the contents of the editbox and add the text as a new item to the listbox.
Finally, I selected Android as the target platform in the project manager and made sure the IDE was connected to my Samsung Galaxy S4 phone ("SCH-I545").
I hit the run button to build the application using our true native code Delphi ARM compiler for Android to create the APK file and deploy it to my Samsung Galaxy S4 phone. I added "Hello" and "world" text in the application and pressed the power and home buttons to grab the screen (I could have also used the Palm Swipe method to capture the screen).
What’s even cooler, the same code can be used with our Delphi true native code compilers for Intel and ARM to compile and run the same project on Windows, OSX and iOS. All you have to do is set the target platform and use the same form and code. With my PAServer running on my MacBook Pro, I configured my iOS Device target.
I hit the run button again to build the same application using our true native code Delphi ARM compiler for iOS and deploy it to my iPhone.
Going back to the Project Manager window, I activated the Win32 target and compiled the same app and ran it on my Windows virtual machine.
.
Posted by on Tuesday, August 20, 2013, at 1:13 pm