Development Workflow for Android Services
RAD Studio suggests you the following development workflow for Android Services when adding support to the Android 64-bit target platform:
- Remove Android Services previously added to an existing application.
- This step is required to add the 64-bit flavor of native libraries (e.g. libProxyAndroidService.so and libMyService.so) related to the Android Services to the deployment list of the application project.
- Add an Android Service just once to the application.
- Keep in mind, the Android 32-bit and Android 64-bit target platforms share at each other Android Services in terms of deployment of native libraries. As a result, it is not possible to add the same Android Service to both Android target platforms.
Consider the following situations when working in a 64-bit target platform:
- If you have an existing application and added an Android Service to it using a previous product release:
- You need to remove the Android Service from the Android 32-bit target platform.
- Make sure after removing the Android Services from the Android 32-bit target platform, Java libraries for the Android Services are also removed.
- Each Android Service adds one Java library; for instance, you need to avoid the same Java library being listed in duplicate under the Libraries node of the Android 32-bit target platform. Otherwise, the FireMonkey application will fail to build.
- If you created a new application or finished removing the Android Services from an existing application, consider the following:
- For Android 32-bit platform, follow the steps:
- For the MyService project:
- Select Android 32-bit as the active target platform.
- Build the service.
- For the MyApplication project:
- Select Android 32-bit as the active target platform.
- On the Add new Android Service dialog, select the Search files automatically from project base path option.
- Press Next.
- Select the base path for the MyService Android service.
- Press Next.
- Press Finish.
- Build the application.
- For the MyService project:
- For Android 64-bit platform, follow the steps:
- For the MyService project:
- Select Android 64-bit as the active target platform.
- Build the service.
- For the MyApplication project:
- Select Android 64-bit as the active target platform.
- Build the application.
- For the MyService project:
- For Android 32-bit platform, follow the steps: