[fpc-pascal] Re: FPC programs in Android without JNI

Andrew Haines AndrewD207 at aol.com
Fri Dec 17 20:46:57 CET 2010

On 12/16/10 12:23, Felipe Monteiro de Carvalho wrote:
> Hello,
> It might be interesting to know that I managed to build a bridge which
> exports the Java API and the Android API to Free Pascal. Check this
> hello world code and screenshot:
> http://wiki.lazarus.freepascal.org/Android_Interface/Android_Programming#Using_the_Android_API_from_Pascal
> The full code is here:
> http://p-tools.svn.sourceforge.net/viewvc/p-tools/PascalNotes4Android/
> bye,

The Android 2.3 ndk now has support for a NativeActivity and there is a
sample of OpenGL ES native program.


General notes:

        * Adds support for native activities, which allows you to
implement the Android application lifecycle in native code.
        * Adds native support for the following:
              o Input subsystem (such as the keyboard and touch screen)
              o Access to sensor data (accelerometer, compass,
gyroscope, etc).
              o Event loop APIs to wait for things such as input and
sensor events.
              o Window and surface subsystem
              o Audio APIs based on the OpenSL ES standard that support
playback and recording as well as control over platform audio effects
              o Access to assets packaged in an .apk file.


More information about the fpc-pascal mailing list