Helper to track JNI Environment code in Android.