Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodCode SnippetDelphiFiremonkey

Tutorial To Implement A Third Party Ad SDK JAR In Delphi XE7 Firemonkey On Android

Delphi XE7 Firemonkey Android JAR Import TutorialDeveloper Barış Atalay has a tutorial up for using a JAR SDK file for AdBuddiz in Delphi XE7 Firemonkey on Android. AdBuddiz is an ad net similar to other networks like ChartBoost and Millennial Media. Ad networks like this are implemented via a JAR SDK and a interface file has to be created for Delphi to access it. Delphi XE7 comes with the Java2OP utility which allows you to do this. In the tutorial it explains how to add the JAR file to the Library section in your project and then how to run Java2OP on it to generate the needed interface files. Once you have the interface file it shows you how to call the functions in the interface file to initialize the library and display ads. Lastly it talks about how to customize your Android manifest file with needed permissions and activities. Each different ad SDK is going to have it’s own Android manifest customizations so be aware of that. The tutorial is in Turkish I think so you’ll need to use something like Google Chrome to translate it for you. This same method should also work with Appmethod.

Head over and check out the full tutorial for consuming an Android JAR SDK file in Delphi XE7 Firemonkey to show ads.


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

Related posts

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores


DelphiCon 2020 FireMonkey Sessions Available Starting November 19


Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

Sign up for our Newsletter and
stay informed

Leave a Reply