|
ID: 29900, Custom Classes.dex Sample for Accessing Android APIs
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:
|
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
File Exploration is Disabled
We're sorry, but errors in the uploaded zip file prevent it from being explored.
The error generated by the Zip attachment is:
You may still be able to repair the zip file contents if you download the entire zip locally. You may also want to ask the author to repost the attachment.
|
Description
|
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:
http://www.embarcadero.com/landing-pages/skill-sprints
For more information on this demo:
http://delphi.org/2014/07/custom-classes-dex/
The base64coder.jar comes from http://www.source-code.biz/base64coder/java/
Copyright 2003-2010 Christian d'Heureuse, Inventec Informatik AG, Zurich, Switzerland
www.source-code.biz, www.inventec.ch/chdh
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.
|
|

Server Response from: ETNACDC04
|
Connect with Us