axmol/cocos/2d/platform/android/jni
Damien 52c66a678c Fixed non-functioning default value for CCUserDefault::getDoubleForKey()
- defaultValue was not being passed into the JNI CallStaticDoubleMethod
method previously.
-  CCUserDefault::getDoubleForKey() would return undefined garbage when
the key doesn’t exist.
Test Case:
Call the following from anywhere in your code (in release
configuration). X will be garbage.
Call the following from your code:
double x =
CCUserDefault::sharedUserDefault()->getDoubleForKey("Some-Non-existant-k
ey-1234", 0);
CCLOG("x = %4.2f", x);

Fix Tested on Android. Affects Android only.
2013-12-19 12:32:51 -08:00
..
DPIJni.cpp issue #2905:adjust folder structure 2013-10-12 11:22:05 +08:00
DPIJni.h issue #2905:adjust folder structure 2013-10-12 11:22:05 +08:00
IMEJni.cpp fix crash of textinput test case 2013-11-18 15:14:48 +08:00
IMEJni.h issue #2905:adjust folder structure 2013-10-12 11:22:05 +08:00
Java_org_cocos2dx_lib_Cocos2dxBitmap.cpp issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
Java_org_cocos2dx_lib_Cocos2dxBitmap.h issue #2905:adjust folder structure 2013-10-12 11:22:05 +08:00
Java_org_cocos2dx_lib_Cocos2dxHelper.cpp Fixed non-functioning default value for CCUserDefault::getDoubleForKey() 2013-12-19 12:32:51 -08:00
Java_org_cocos2dx_lib_Cocos2dxHelper.h issue #2905:adjust folder structure 2013-10-12 11:22:05 +08:00
JniHelper.cpp Clear NoSuchMethodError Exception when JniHelper fails to find methodID 2013-10-28 18:40:58 +00:00
JniHelper.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00