The Android JNI tips specifies that: "NewWeakGlobalRef and DeleteWeakGlobalRef are not implemented. The VM supports weak references, but not JNI "weak global" references. These will be supported in a future release."
Is this still the case, for example in the cupcake code? I need to implement a set of callbacks from JNI to Java efficiently, and I need to cache reference to the class in order to call the methods. If NewWeakGlobalRef and DeleteWeakGlobalRef are not supported, what is the best way? >From another thread: >http://groups.google.com/group/android-platform/browse_thread/thread/d0f91853db7bad20 It seems there is no workaround but expect a leak in the program, is that right? Eric --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
