Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 29900, Custom Classes.dex Sample for Accessing Android APIs

by Jim McKeeth Email: Anonymous

This sample shows how to create a custom Classes.dex file to access 3rd part Android APIs
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For RAD Studio, Version 20.0  to 20.0 367 downloads
Copyright: No significant restrictions

Size: 11,434 bytes
Updated on Tue, 08 Jul 2014 01:24:29 GMT
Originally uploaded on Tue, 08 Jul 2014 01:24:26 GMT
SHA1 Hash: 540AA34716DF9BE763AF0228EB0CF2C2F9F3ED6E
MD5 Hash: FE07F8C54D9A7C06E214A3077EF25D12

    Explore the files in this upload

By creating a custom Classes.dex you can get access to 3rd party Java JAR APIs from your application. For my Integrate More Android with a JNI Call to your Android App Developer Skill Sprint I created a demo app that demonstrates creating a custom Classes.dex.

This was originally part of the Developer Skill Sprint

Integrate More Android with a JNI Call to your Android App
from July 8th, 2014 by Jim McKeeth

For more skill sprints:

For more information on this demo:

The base64coder.jar comes from
Copyright 2003-2010 Christian d'Heureuse, Inventec Informatik AG, Zurich, Switzerland,
Used under the BSD License or MIT License

To build the demo:

* Examine the createdex.bat file to make sure it refers to the correct location for your dx.bat utility and the fmx.jar & android-support-v4.jar files.
* Run the createdex.bat file to create the classes.dex file which includes the two jar files above, plus the base64coder.jar file.
* Double check that the Deployment Manager references the new classes.dex and not the old ones, and that the remote path is "classes\"
* Notice that the android.JNI.Base64Coder.pas file wraps and exposes the methods of the base64coder class.
* Run the app on your Android device and verify that it works as expected.

The Base64Coder.JAR is Android specific, so it will not work on iOS or Windows.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04