JNI example: Small improvements

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2166 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
sekelsenmat
2011-11-27 08:51:47 +00:00
parent 694f02d26c
commit b018630e7f
2 changed files with 3 additions and 6 deletions

View File

@ -56,10 +56,6 @@
<TargetOS Value="linux"/>
</CodeGeneration>
<Linking>
<Debugging>
<GenerateDebugInfo Value="False"/>
<UseLineInfoUnit Value="False"/>
</Debugging>
<Options>
<ExecutableType Value="Library"/>
</Options>

View File

@ -4,8 +4,8 @@ library nativetest;
uses
SysUtils,
jni in 'jni.pas',
log in 'log.pas';
jni,
log;
const curClass:JClass=nil;
nativeCodeLoaded:JfieldID=nil;
@ -36,6 +36,7 @@ begin
exit;
end;
__android_log_write(ANDROID_LOG_INFO,'nativetest','Reading curClass');
curClass:=curEnv^.FindClass(curEnv,'com/pascal/jnitest/AndroidJNITest');
if not assigned(curClass) then begin
__android_log_write(ANDROID_LOG_FATAL,'nativetest','curEnv^.FindClass failed');