Tuesday, June 21, 2011

Delphi for Android Future

Firstly am going to be very secretive to the future of my Delphi for Android tool since others can and did steel my ideas... Profit from my idea! :-(

There will b a brand new version of Delphi for Android but more than that am not going to say or say when it will become available.

From now on I will not publish more detail about this and the other ideas/tools that am working on.

Thursday, May 19, 2011

Delphi For Android: Warning: You need to manually copy the Android framework library before compile.

After you run the Delphi for Android compiler you will get the following error on the command line:

Warning: You need to manually copy the Android framework library before compile.

The compiler integrate and call Java code, you need to copy Android.java (soon to be called DAndroid.jar) to the /libs folder of your Android generated project.

To give you an update:

Am working very hard on the new compiler, toolset, components etc... Hopefully will have something ready soon.
Unfortunately this is a part-time project so my time is limited.

Focus on:

- New compiler written in Delphi itself (not C#).
- Components/libraries support for the Android SDK.
- Documentation an samples.

Monday, April 4, 2011

Delphi For Android: Post To Mailing Lists

If you got any questions, problems etc please rather post your questions to one of the mailing lists at:


Else its difficult to reply if you post to this blog.

Friday, March 4, 2011

Delphi For Android: Invalid Android SDK Directory

When you run the compiler "dccdroid.exe" and get the following error:

"Invalid Android SDK directory, please make sure that the 'AndroidSDKDirectory' application config points to a valid Android SDK location."

There are a few things you need to check:

1. Update the "DCCDroid.exe.config" file:

Change this to point to location of your Android SDK directory.

2. Make sure that "adb.exe" can be found in that directory e.g on my location machine:


Wednesday, February 9, 2011

Delphi For Android v0.4.1 Patch Release

Fix bug where AndroidSDKDirectory can point directly to your Android tools directory.
Download it now.

Monday, February 7, 2011

Delphi For Android v0.4 Release

Delphi For Android version 0.4 is ready for download.
In this version I've created binaries for Delphi 6.0.

When is the next release?

The next version of the compiler is written in Delphi and target PhoneGap... It will be released when its ready, goal is to have it by end of Feb 2011.

Wednesday, December 29, 2010

Delphi for Android v0.3 Tutorial

Delphi Prism support iPhone and Android application development using Monotouch and MonoDroid where the goal of Delphi for Android ("Delphi Droid" for short) is to allow any developer that has Delphi 5 onwards to write Android applications.

This is a short tutorial on how to get started with Delphi Droid compiler version 0.3 as it currently is.

Note: The compiler isn't complete, there is still ALOT of work to be done. If you wish to help with the development, please contact me to contribute.

  • The Android SDK together with the Java SDK and Ant. Ant get used to compile the Android application since DelphiDroid generate a standard Android project (similar to how you do it using Eclipse)
  • Download DelphiDroid_v0.3.zip from the Google Code page.
  • Off course you need Delphi 5.0 or later.
  • .Net framework 3.5 run-time
What is in the ZIP:

Within the ZIP file you will find the following directories:
  • bin: There is where the compiler etc are located. You can set this as your SYTEM VARIABLE to call from command line.
  • DelphiDroid/DCCDroid: C# source code of the compile. This can be compiled using MS Visual Studio.Net 2008.
  • DelphiDroid/Framework: The "Delphi For Android" package that all Delphi applications require.
  • DelphiDTest: The Delphi example as in Sneak Preview 2 video.
  • Test: The actual Android projected generated by the compiler from the DelphiDTest example.
Setup Android SDK etc:

I'm not going to explain how to setup the Android SDK, I assume you already have knowledge on how to install the SDK, set it up etc.

Setup the compiler:

Within the bin folder you will find DCCDroid.exe.config file, open this using a plain text editor like Notepad:

  • Change the AndroidSDKDirectory to the location where you installed the Android SDK.
  • Change DelphiBinFolder to the location of the Delphi BIN folder that contains the Delphi compiler etc.
Run the sample program:

Open DelphiDTest and make sure it compile and run successfully in Delphi.

Run the compiler with no parameters:

Open the MS DOS Command prompt and run:


The output:

Delphi For Android Dev Build
Copyright © 2010 by Lennie De Villiers

Invalid arguments, the following arguments are required:

Project Name - Name of the project
Activity Name - Name of the activity
Package Name - Java package name
Input Source Path - Delphi source directory path
Android Output Path - Android output directory path

So this is very basic command line parameters, i don't need to explain how they work.

You can open compile.bat file under the bin folder for an example:

dccdroid.exe DelphiAndroid DelphiAndroid com.test c:\Demo\DelphiDTest c:\Demo\Test
copy C:\Demo\bin\Android.Framework\*.* C:\Demo\Test\src\com\Test
cd c:\Demo\Test
ant debug

This will compile the example program (assuming the location like c:\Demo) , copy the Android libraries and compile the program.

When all is done you can run the run.bat file:

cd c:\Demo\Test\bin
adb shell rm /data/app/com.test.apk
adb -s emulator-5554 install DelphiAndroid-debug.apk

This will install the sample on the Android emulator.

You can look at compile.bat and run.bat to write your own compile/run scripts.

What is done:

Just like I said before, there is still ALOT of work to be done. Currently only the following components are supported:



Mailing Lists:



General users.




If you can't donate your time but wish to don't some money to help with the development, then please contact me.