Customize The Classes.dex File To Access Third Party Android JAR Libraries In Delphi XE6 Firemonkey

Delphi XE6 Firemonkey Android SDK Classes.dex JAR ShimJim McKeeth from Embarcadero has a new blog post up which demonstrates how to customize your classes.dex Android SDK ship for Delphi XE6 Firemonkey. As we’ve covered in previous posts Firemonkey apps are launched by a Android SDK shim. Firemonkey apps themselves are built for the Android NDK and are contained within a .SO file. You can customize this shim to enable access to additional third party Java libraries (JAR files). You can also add Android functionality to it which is not currently available from Delphi like BlueTooth callbacks, third party ad libraries, bar code reader callbacks, and possibly Android services. You do this by merging the existing Delphi XE6 Firemonkey classes.dex file with your own version. Jim has a demo project and slideshow where he demonstrates exactly how to do this to enable access to a third party base64 coder library. He also links to three different utilities which can convert Java classes and JAR files into Object Pascal interface files which will allow you to access the JAR files that you want to include in the shim. His demo comes with some useful batch files which speed up the process. You can get a second demo for creating a custom classes.dex file within the DPF for Android third party control library. You should be able to do this with Delphi XE5 and AppMethod as well.

Head over and read the full blog post, download the demo, and watch the slideshow for customizing your classes.dex file in Delphi XE6 Firemonkey.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

One Response to Customize The Classes.dex File To Access Third Party Android JAR Libraries In Delphi XE6 Firemonkey

  1. Pingback: Tutorial On How To Build NFC Functionality Into Your Delphi XE7 Firemonkey Apps On Android | Delphi XE5 XE6 XE7 Firemonkey, Delphi Android, Delphi IOS

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Getting Started With LiveBindings Guide From Embarcadero For Delphi XE6 Firemonkey

Embarcadero has a getting started with LiveBindings guide in the Delphi XE6 Firemonkey documentation which explains the architecture and links...