I am porting a game from iOS to android use cocos2d-x, and I want to find a replacement to NSUserDefaults.
After a few try, I found the CCUserDefault seems to be my answer.
When I call something like this : “CCUserDefault::sharedUserDefault()->setIntegerForKey(”egg_num“, 1);” on android, it just crash.
But this is fine at iOS build. Can somebody help me about this issue?