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

Jeppe Johansen jepjoh2 at es.aau.dk
Thu Jan 13 16:38:39 CET 2011


Den 13-01-2011 15:58, Felipe Monteiro de Carvalho skrev:
> Hello,
>
> On Tue, Dec 28, 2010 at 4:17 AM, Jeppe Johansen<jepjoh2 at es.aau.dk>  wrote:
>> They are C APIs indeed. I just took a stab at it, and after a long day of
>> pointer errors in converted C code and really, really badly descriptions of
>> error messages, I managed to port the example from here
>> http://developer.android.com/reference/android/app/NativeActivity.html to
>> FPC
>>
>> Code here: http://j-software.dk/android.zip
>> Simply run lazbuild test.lpi in the jni dir, and then run ant debug/ant
>> install in the root dir
> What about putting your units in the lazarus-ccr? I also want to use
> parts of it (at the moment I am interested in log.pas), so we should
> keep files in a central repository easily accessible for everyone and
> the Lazarus-ccr is the best place for emergent projects. Then we can
> colaborate on the development of common parts.
>
> If you want I can put the units there and send you a link.
>
> thanks,
I think you can put the units there if you want. I can't figure that 
site out

I forgot to put a mention in there that the log and jni unit come from 
Benjamin Rosseaux's example here: 
http://vserver.rosseaux.net/stuff/FPCAndroidJNINativeTest.zip
The other units are conversions from the latest NDK



More information about the fpc-pascal mailing list