I’ve recently had an increase in the number of customers asking about getting started with Android programming with Delphi, so I thought it was a good time to refresh how to check your IDE is set up, how to enable developer mode on an Android phone, and how to quickly get Android applications running and debugged from RAD Studio. When you’ve mastered all of these steps, you’ll be able to replicate and implement them by creating your first Android app using IDE software.
If you are new to Android development, then the first thing to note is that you need to ensure the IDE has Android support enabled. Under Tools > Manage Platforms, ensure Android is enabled. If you are new to Android development, the first thing you should do is make sure your IDE has Android support enabled. Make sure Android is enabled under Tools > Manage Platforms
You should also ensure that Java is installed on your machine. This is due to the fact that RAD Studio incorporates the Android SDK and NDK into the process of packaging and deploying Android applications. The ADB program, for example, informs the IDE about which Android devices are connected to the computer.
If you already have Java installed, you can set the paths to the required elements required by the IDE under Tools > Options > Deployment > SDK Manager
With Java setup and Android tools enabled, you should be able to put your phone into developer mode and connect it to the Windows host to see it in the IDE.
If you have any issues with Android phone setup – check this post out.
The rest of the video shows running your first Android application directly from the IDE. If you want to debug the application, ensure you use DEBUG mode rather that RELEASE build. from the build configurations.
If you are using Debug mode, you still need to choose Target platform (for 32bit or 64bit), a target device, and then a configuration. – e.g. Development.
These options are used to setup and manage the development, release and files deployed. Something I will cover another time.
For more on Android development, check out the Embarcadero docwiki on Android app development