[fpc-pascal] Android/JNI control example

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Apr 24 14:50:56 CEST 2014

On Thu, 24 Apr 2014 15:48:15 +0300
patspiper <patspiper at gmail.com> wrote:

> Hi,
> With the successful preliminary implementation of java events calling 
> pascal code, my next step is to try to integrate android's visual 
> controls. Can anyone give a very basic example using pascal/JNI only 
> (even pseudo code) on how to create and display an android control from 
> scratch? In other words, what are the steps needed?
> To make an analogy, creating a Lazarus button requires these basic steps 
> to make a button visible:
> - Create the button object (TButton.Create)
> - Set its owner (button.Owner := form)

The Owner is only needed for streaming.

> - Set its parent (button.Parent := form)


More information about the fpc-pascal mailing list