[android-developers] JNI callback problem

2009-09-15 Thread caval
L);* *if ((nResult != 0) || (env == NULL))* { fprintf(stderr, "--> In _Java_com_caval_now_Map_AddItem Thread Attached Failed.\n"); return; } jstring ret = env->NewStringUTF(pszTitle); // I run to this line and ap crashed. jclass cls = env->FindClass("com/caval/now/ServerList&quo

[android-developers] Re: JNI callback problem

2009-09-15 Thread caval
> (3) The logcat output will have some information about the crash that > you should include. > > > On Sep 15, 3:33 am, caval wrote: > > firstly I save JVM pointer in a native function which called when ap > > lauched: > > JNIEXPORT void JNICALL Java_com_cava

[android-developers] multicast permission of dalvik and how to attach to dalvik env?

2009-09-16 Thread caval
lass("com/xxx/ooo/ServerList");* * ...* * * *jvm->DetachCurrentThread();* it seems AttachCurrentThread not failed but env not correct. Regards, Caval. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Develo

[android-developers] Re: Catching memory exception

2009-08-04 Thread caval
Firstly you can enter into the shell mode by typing "adb shell"then because android has a linux heart so you can type "ps" to see all process's status which also including mem info. Regards, Caval. 2009/8/5 whitech > > Oh so sorry to hear that > Thank