Thank you Sam. Regarding the questions at the end of your tutorial here is my guess for the first and second questions.
1. Why do we need JDK installed?
I believe Javac.exe is being used to compile at least one Java file, and jarsigner.exe is being used to sign the package, both are included in the JDK.
The main project file of an Android application must contain at least one class that derives from android.app.Activity or one of its subclasses. This file is a Java file. In our case this file is located in the template folder and is named LCLActivity.java
TemplateProject\android\src\com\pascal\lcltest\LCLActivity.java
To compile this Java file and produce its javaclass file we need Java Development Kit (JDK).
In addition to that, only signed Android packages (.apk) can be deployed on Android devices/emulators. To sign a package we need jarsigner.exe.
2. Why does it only work with JDK 1.6 but not with JDK 1.7?
I believe Android-SDK\platforms\android-xx\android.jar was generated using JDK 1.6 and it seems that Java class files (byte codes) are not compatible with previous versions.
Class library files (like SQLite*) are compiled using that version of JDK and packed in android.jar. While reading build_debug_apk.bat, for instance, I saw a line like this:
call javac -verbose -encoding UTF8 -classpath %APK_SDK_PLATFORM%\android.jar -d %APK_PROJECT_PATH%\bin\classes %APK_PROJECT_PATH%\src\com\pascal\test\LCLActivity.java
which clearly depends on class files from android.jar to compile LCLActivity.java, so it has to use the same version.
Thank you again. This is my first post. Correction are welcome.