Android Interface/OpenGL ES GUI

From Lazarus wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Android robot.svg

This article applies to Android only.

See also: Multiplatform Programming Guide

Go back to Android Interface

In this solution nothing of the drawing will pass through the Java helper applications, instead everything will be based on OpenGL ES and on the Lazarus Custom Drawn Controls, as explained in the image below. A generic Java application will be created to launch the LCL application and to expose indispensable parts of the Java Android API to the LCL and both will communicate using pipes. The Lazarus user application will be built as a linux-arm executable and be attached to the generic Java encapsulating application. The encapsulating Java program shouldn't need to be changed by Lazarus users, and no knowledge of Java will be necessary to develop Lazarus applications for Android. Of course Java knowledge will be necessary to implement the auxiliary Java application.

Android LCL Architecture.png