Hi all,
Inside Annovation API, I have to keep jstr up to
date and display in Java GUI, just like the data below.
************************************************************************* jstr = (*env)->NewStringUTF(env, data);
if (jstr == 0) { fprintf(stderr, "Out of memory\n"); exit(1); } args = (*env)->NewObjectArray(env, 1, (*env)->FindClass(env, "java/lang/String"), jstr); if (args == 0) { fprintf(stderr, "Out of memory\n"); exit(1); } (*env)->CallStaticVoidMethod(env, cls, mid, args); ********************************************************************** Then I have to call the CallStaticVoidMethod(env, cls, mid, args) in order
to pass jstr to Java to display.
My problem is, the data is keep changing, how I going to pass and
display them (up to date) in Java.
Everytime I detect the data is changed, I recreate jstr, then I call
CallStaticVoidMethod(env, cls, mid, args) again?
Thank you,
soonho
|