[fpc-pascal] Android/JNI control example

patspiper patspiper at gmail.com
Thu Apr 24 23:00:30 CEST 2014


On 24/04/14 15:50, Mattias Gaertner wrote:
> 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.

The thought never occurred to me as setting the owner is as almost like 
breathing. You just don't think about it :)

Stephano


More information about the fpc-pascal mailing list