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.

Requirements:
  • 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:

DCCDroid.exe

The output:

Delphi For Android 0.0.0.3 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:

TEdit
TLabel
TButton

References:


Mailing Lists:

Users:

http://groups.google.com/group/delphi-for-android-users

General users.

Developers:

http://groups.google.com/group/delphi-for-android-developers

Donations:

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

Tuesday, December 14, 2010

Delphi For Android Future

Now what has Lennie been doing all the time? Am busy working on a new version of the compiler that got a couple of surprises in it... So stay tuned until next year in January 2011 when I will release the first version of the new compiler :-)

Friday, October 29, 2010

DelphiDroid Compiler, Why C#?

Why have I written the DelphiDroid compiler in C#?

C# is the language that I use the most for 90% of all development.... 5% Java and the other 5% in other languages like PHP or Delphi etc. So yes its the language that I got the most experience in currently.

The compiler is also base upon the work I did for the C# For Blackberry toolset (This tool allow you to use C# to code for Blackberry mobile devices).

Saturday, October 16, 2010

Delphi For Android Going Open Source

After a lot of consideration, research etc I've decided to release DelphiDroid (Delphi for Android) as open source. The project is now available for download from the Google Code project page over sub-version.

Over the next couple of days I will release:

- Guide to how the tool works
- A Road Map
- Contribution Guide

Is it ready for production use yet?

No not at all, there are still ALOT of work to be done before its ready for use to write a full application with.

Please subscribe to the development mailing list or contact me if you wish to help.

How are you planning to make money?

By offering my services as a software developer and accept donations etc.

Mailing Lists

Users:

http://groups.google.com/group/delphi-for-android-users

General users.

Developers:

http://groups.google.com/group/delphi-for-android-developers

If your a developer.

Sunday, October 10, 2010

Delphi For Android Progress & Component Poll

Currently focusing on:
  1. Project planning for the next Sprints until first Beta version and first release version 1.0
  2. Indicate Application Icon and other assets
  3. Write Android specific components like TDroidButton (extend TButton), TDroidLabel (extends TLabel) etc that only have Android specific properties/methods/events.
  4. Library support: You can write your own libraries, this will help extending the tool (will blog more about this later)
  5. Audio and video support
  6. Images components
  7. Activity library to manage the activity events etc
  8. Sample applications
All above is still part of the Activity, later tasks add support for Android Services, Intents, Broadcast Receivers, Content Providers, Widgets etc.

Other notes:


C++ Builder support will be added much later and isn't part of this release version 1.0.
Lazarus/Delphi Prism support much later.

Twitter Poll: Create your own Delphi->Android components?

Please fill in the poll here.

I use polls to get feedback on what direction to take in the tool.... Sometimes to make a design decisions is difficult and for that I ask feedback.

Currently all components like TButton etc will have Android specific version that only have Android properties/events.

Only myself can write additional components.