Android Mobile Application Development
Go Up to Cross-Platform Applications Index
The FireMonkey framework and Appmethod provide the tools you need to develop applications that target the Android platform. Using FireMonkey you can create an Android application and deploy it to Android devices.
File > New > Mobile Application - Object Pascal
The procedure that you use for developing Android apps in Appmethod is generally the same as the procedure for developing iOS apps in Appmethod. One significant difference is that Android development does not require PAServer and connection profiles, both of which are required for iOS development. Both iOS and Android require that the SDK Manager must be pointed to an SDK for the target platform.
|Comparison of Development Requirements for iOS and Android Platforms|
|iOS Requirements||Android Requirements|
Does not apply.
Does not apply.
Does not apply.
Install the USB driver for your Android device and connect to your Android device by USB connection.
Does not apply.
Verify or set the Uses Permissions needed for your Android mobile app
See FireMonkey Platform Prerequisites for a list of system requirements for your development PC, as well as Android device requirements (prerequisites that Android devices must match to support FireMonkey applications).
Supported Android Devices
A multitude of Android devices exist on the market, but we have tested and officially support a short list of Android devices, most of which run the Jelly Bean operating system (4.1/4.2). For a list of supported devices, see Android Devices Supported for Application Development.
The list also specifies some older Android devices that can be used with Appmethod if you implement an AVD (Android Virtual Device) for them.
Preparing Your Android Development Environment
Here are the steps you need to perform in order to prepare your development system (PC) and your Android device for application development with Appmethod:
- Install Appmethod. This also installs the Android development tools.
- Important: If you chose not to install the Android development tools (JDK/SDK/NDK) during the Appmethod installation, you need to install the Android development tools.
- On your development system, install the USB driver for your Android device.
- On your Android device, enable USB debugging
- In the IDE, set up your cross-platform development environment. This includes the following steps:
- For more information, see Creating an Android App and Steps in Creating Cross-Platform Applications.
Developing Your Application
To create a new FireMonkey mobile application in Appmethod, select File > New > Mobile Application - Object Pascal, select one of the choices, and click OK.
For information about the available choices, see Types of Mobile Applications You Can Create. Android is the default target platform in new mobile applications.
The fastest way to get started with Android application development is to follow the tutorial: Mobile Tutorials: Mobile Application Development (iOS and Android).
Running Your Application
After you enable USB debugging on your Android device, you can run your applications on your Android device. If Appmethod does not detect your Android device automatically, see Configuring Your System to Detect Your Android Device.
After you install one or more Android emulators on your development system, you can also run your applications on any of your Android emulators.
- Note: Android emulators are extremely slow and do not support the same feature set as real devices. If you have an Android device, use your Android device instead.
If your application requires special Android features, such as Internet access or Bluetooth, enable the required Uses Permissions in the appropriate project configuration of your application.
- Note: Appmethod configures new Android applications to require certain usual permissions by default; you should disable permissions that your application does not need.
Deploying Your Final Android Application
Before each release of your Android application, you should check that every setting is properly configured. See Preparing an Android Application for Deployment.
After your Android application is ready for final deployment, you can proceed to build and deploy your application:
- To create a signed Android package that you can upload to application stores such as Google Play, see Deploying Your Signed Android Application.
- To create an unsigned Android package that you can upload to certain application stores directly or that you can sign manually using third-party tools, see Deploying Your Unsigned Android Application.
- Android Devices Supported for Application Development
- Installing the Android Development Tools
- Adding an Android SDK
- Creating an Android App
- Migrating Object Pascal Code to Mobile from Desktop
- Running an Android App Using Mobile Preview
- Using an Android Device to Run Your Application:
- Running and Debugging Your Android Application Remotely
- Using an Android Emulator to Run Your Application:
- Deploying Your Application:
- FireMonkey Platform Prerequisites
- Wizards for Creating FireMonkey Cross-Platform Applications and Components
- Mobile Application Templates
- DCCAARM.EXE, the Object Pascal Cross Compiler for Android
- Differences between Windows and Other Platforms
- iOS Mobile Application Development
- Mobile Tutorials: Mobile Application Development (iOS and Android)
- Mobile Code Snippets
- ShowModal Dialogs in FireMonkey Mobile Apps
- 8 Tips to Speed Up Your Android ARM Emulator (AVD)