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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal