ANDROID DEVELOPMENT WITH RAD STUDIO Embarcadero Technologies Copyright
ANDROID DEVELOPMENT WITH RAD STUDIO Embarcadero Technologies Copyright 2016
CRAIG CHAPMAN § Software Consultant for Embarcadero Technologies § craig. chapman@embarcadero. com § Craig. Chapm 53280 § Blog: http: //chapmanworld. com/2016/12/05/android-with-rad-studio Embarcadero Technologies Copyright 2016 2
WHICH PRODUCT IS FOR ME? RAD STUDIO, DELPHI, C++ BUILDER. RAD Studio Includes IDE, Delphi-Pascal and C++ languages. Delphi Includes IDE, and Delphi-Pascal language, but no C++ Builder Includes IDE, and C++ language, but no Delphi-Pascal Embarcadero Technologies Copyright 2016
AGENDA (1/3) § Why RAD Studio for Android? § Benefits of RAD Studio § Who are Embarcadero? § Benefits of True Native Development. § Getting Started § Installing RAD Studio § Connecting your device § Hello World Embarcadero Technologies Copyright 2016
AGENDA (2/3) § Multimedia § Working with Audio § Working with the Camera § Other Sensors § Working with data § Consuming REST/JSON Services § Visual Live-Bindings Embarcadero Technologies Copyright 2016
AGENDA (3/3) § More UI Features § Layout arrangements § The style system. § Multi-Device Preview § Q&A § Links § Thank-You § Q&A Embarcadero Technologies Copyright 2016
WHY RAD STUDIO FOR ANDROID? BENEFITS OF USING RAD STUDIO • Visual drag-and-dropdevelopment Visual development means rapid prototyping. It enhances your productivity by allowing you to drag and drop your application UI together in an intuitive design environment, and enables you to see what your application will look like before you deploy it to your Android device. • Simple deployment The RAD Studio IDE uses the Android SDK to deploy your applications directly to your Android device or Emulator, and then provides on-device debugging. The process will be quite familiar to existing Android developers. Once configured, RAD Studio takes care of this process for you and provides convenient management of permissions and bundling of resources for your project. Embarcadero Technologies Copyright 2016
WHY RAD STUDIO FOR ANDROID? BENEFITS OF USING RAD STUDIO • Cross platform You’ve built your application and it’s now time to attend to the apple market with your i. OS version. With other tools, it’s time to start over, but with RAD Studio, just change project target and hit build! • Single code-base, Single UI design With RAD Studio you can deploy your applications on Android, i. OS, Windows and OSX all from the same single code base. Design your UI just once using a single tool (RAD Studio visual designer), and deploy to multiple targets at the flip of a switch. Embarcadero Technologies Copyright 2016
WHY RAD STUDIO FOR ANDROID? WHO ARE EMBARCADERO? • Embarcadero is focused on developer tools. With a legacy of more than 20 years in the developer tools industry, and having been profitable for almost as many years, Embarcadero is strong, stable and very experienced in providing the tools to do the heavy lifting of development for you. “Leading the Way with Innovative, Heterogeneous Software Tools” Embarcadero Technologies Copyright 2016
WHY RAD STUDIO FOR ANDROID? BENEFITS OF TRUE NATIVE DEVELOPMENT RAD Studio produces machine level binary code that runs right on the CPU of your device! There are many tools in the mobile development market place which claim to offer cross platform development. They usually achieve this through a scripting system, or a virtual machine, or some type of wrapper around the device browser for HTML ‘transpilers’. Even the Android development tools from Google produce byte-code for the Java runtime (Virtual Machine). We’re different. Rad Studio produces native machine level ARM binary code that runs right there on the CPU of your Android device. This offers the true performance of the CPU, while also making your app more difficult to reverse engineer than it would be if written for Java. None of the Android API’s or devices are out of reach with RAD Studio. With the exception of some rare circumstances, you don’t need to wait for us to catch-up to a new Android release, or to provide access to some new device. The ability to gain access to these services is in your hands. Embarcadero Technologies Copyright 2016
WHY RAD STUDIO FOR ANDROID? BENEFITS OF TRUE NATIVE DEVELOPMENT What about optimizations only possible under virtual machines like Java or. NET? You may well have been told that there are some compiler optimizations which can only be done at run-time on byte code, and this is true. . What’s also true is that those optimizations are only necessary when running a byte-code application. It’s a simple fact that a virtual machine emulating a CPU, simply cannot out perform the CPU it’s running on! But Android is a Java based operating system? ! This is also true, but as the ARM processor is not capable of running Java byte-code natively, it’s not possible for the operating system to be written entirely using Java. Instead, Android is a Java operating system which runs inside a modified version of the Linux operating system. With RAD Studio you gain full access to all of the Java Android API’s, through the JNI bridge, as well as access to the underlying Linux operating system. “If it’s possible with the device hardware and operating system, it can be done using RAD Studio. ” Embarcadero Technologies Copyright 2016
GETTING STARTED INSTALLING RAD STUDIO Regardless of the product you’re installing, you have the option of using one of two installers. • The ISO Installation. You download a. ISO file containing the product, and either use it to create a physical CD, or otherwise ‘mount’ the file as a virtual drive. The Auto-run script will take over and begin the installation. • The Web Installer. The web installer is a. exe file which is far smaller than the ISO. Download the. exe file and double click it like any other installer. It will then begin installing the product, downloading the other components it needs as the installation progresses. RAD Studio is a large product which covers lots of development capabilities beyond Android development alone. It will therefore take considerable time to install. The web installer allows you to save time by installing only the parts you wish to use. Embarcadero Technologies Copyright 2016
GETTING STARTED CONNECTING YOUR DEVICE(S) • Create a cross platform project Before we attempt to connect a device, lets have a new empty project ready to deploy to it. Once this project is deployed, we’ll know for certain that everything is working. • Add the Android Platform and Build. Some of the components of RAD Studio required to build an Android application (such as the Android SDK), may not have been installed by the installer. Setting your project up to build for android and then attempting to build it, will instruct the IDE to ensure those components are downloaded and installed. • Ensure the Android SDK is able to detect the device. Making sure the appropriate development driver is installed, ensure that the Android SDK’s ADB application is able to see your device. The device should be in ‘developermode’. Embarcadero Technologies Copyright 2016
DEMONSTRATION Embarcadero Technologies Copyright 2016
LINKS & ADDITIONAL RESOURCES • Doc. Wiki: http: //docwiki. embarcadero. com • Community: https: //community. embarcadero. com • Youtube: https: //www. youtube. com/user/Embarcadero. Tech. Net • Chapman. World: http: //www. chapmanworld. com http: //chapmanworld. com/2016/12/05/android-with-rad-studio • Samples: C: UsersPublicDocumentsEmbarcaderoStudio18. 0Samples • Fire. UI Live Preview: http: //docwiki. embarcadero. com/RADStudio/Berlin/en/Fire. UI_Live_Preview Embarcadero Technologies Copyright 2016
THANKS! Any questions? You can find me at: craig. chapman@embarcadero. com and http: //chapmanworld. com Embarcadero Technologies Copyright 2016 16
- Slides: 16