To create a new LCL-CustomDrawn-Android application simply copy all of the file structure and build and java files from the example project called "androidlcl". This example can be obtained from the Lazarus source tree in lazarus/examples/androidlcl
done, but I don't know where the build and java files really are...
The file structure of the example project looks like this:
lazarus/examples/androidlcl/*
lazarus/examples/androidlcl/android/*
lazarus/examples/androidlcl/android/src/com/pascal/lcltest/ <-- Here is the java source file
Note com/pascal/lcltest is the *package name* of the project. You need to decide your own package name. And then create your own structure:
myproject/ <- here copy everything from androidlcl/
myproject/android/src/com/mycompanyname/myprojectname/ <-- Here put the java source file
All changes need to be reflected in the ANT build files. Also open the java source file, I think you will need to change the package name there too. And you will also have to change the package name in the exported routine names in your main library file.
Library ? : http://wiki.lazarus.freepascal.org/shared_library ?
Yes
Then you will need to modify the build files to change them to your new project name and your new package name.
Open the directory lazarus/examples/androidlcl/android/
Now read *all* files directly inside this directly using a text editor. Note all the places which have paths, project names and package names.