Maybe I'm missing something (since I'm new to Android and using the BNR book to do both Java and Rubymotion versions of each chapter) but it does look like getBooleanArray and putBooleanArray are methods of Bundle, inheritied from BundleBase:
So I did notice however that I was incorrectly passing two arguments to getBooleanArray and now it works! Maybe it tries to match the method signature (with two args) and it was just trying to tell me that no native method with that signature existed?
Also if I try and retrieve that KEY_CHEATERS without having saved a boolean array to that key, I still get a crasher:
F/art (11734): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: jarray was NULL
F/art (11734): art/runtime/check_jni.cc:65] in call to GetArrayLength
F/art (11734): art/runtime/check_jni.cc:65] from void net.esalazar.android.geoquiz.QuizActivity.onCreate(android.os.Bundle)
Coming from Ruby this seems surprising to me. Shouldn't I just get nil and it is up to me to deal with that? Or an empty array? This is exactly why I was trying to pass a second argument to getBooleanArray since I thought I could pass in the default in case there was nothing stored with that key.
Please advise, thanks!