Custom Drawn Interface/Android

From Free Pascal wiki
Revision as of 11:40, 29 November 2011 by Sekelsenmat (talk | contribs) (New page: Go back to Custom Drawn Interface __TOC__ == Architecture== LCL-CustomDrawn-Android utilizes a minimal Java application which communicates with our Pascal library and sends all even...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Go back to Custom Drawn Interface

Architecture

LCL-CustomDrawn-Android utilizes a minimal Java application which communicates with our Pascal library and sends all events to it and also obeys commands from it. The communication is done via JNI as supported by Google. The controls are not native, instead they are all drawing using TRawImage+TLazIntfImage+TLazCanvas and events and the painting are clipped using LazRegions. The drawing itself is done in Pascal using jnigraphics to draw on a Bitmap Java object which is then drawn by the minimal Java activity on a SurfaceView.

Our previous and short-lived attempt to write an LCL Interface for Android (LCL-Android) utilized a non-standard method of using native executables which communicated with a Java machine via Pipes. This method was abandoned because it was considered unsupported by Google. It is not considered obsolete and people should use instead LCL-CustomDrawn-Android.

Example application

Custom_drawn_android_test1.png