Added explicit cast to jboolean in an android JNI call.