[fpc-pascal] Re: JNI crash

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Mon Nov 28 10:06:39 CET 2011


Aha! It works without registering anything =D Just tested, the first
pixel drawing from TForm.OnPaint worked just now =D

My error was the function name ... I forgot that you need to rename
all JNI functions for every project =(

It should not be Java_com_pascal_jnitest_AndroidJNITest_LCLDrawToBitmap

But should be Java_com_pascal_lcltest_LCLActivety_LCLDrawToBitmap

But I am still very interrested if anyone has any ideas why GetEnv crashes.

-- 
Felipe Monteiro de Carvalho



More information about the fpc-pascal mailing list