In Chapter5.cpp there is a call to createScene2() inside a callback method:
|
Director::getInstance()->replaceScene(createScene2()); |
I ran this Chapter5.cpp without any problem on Linux (Xubuntu 16.04), but it doesn't work on Android.
Actually, on Android the scene1 showed but when I tap on "Make A New Scene" the app crashes!
I tested it on three devices: HTC one X9 (API 23) , HTC one XL (API 17) and Nexux 5x (API 26). All of them crashed when I tapped on "Make A New Scene" in chapter5.
What is it for?
In Chapter5.cpp there is a call to createScene2() inside a callback method:
programmers-guide-samples/cpp/src/chapter5/Chapter5.cpp
Line 53 in 4449554
I ran this Chapter5.cpp without any problem on Linux (Xubuntu 16.04), but it doesn't work on Android.
Actually, on Android the scene1 showed but when I tap on "Make A New Scene" the app crashes!
I tested it on three devices: HTC one X9 (API 23) , HTC one XL (API 17) and Nexux 5x (API 26). All of them crashed when I tapped on "Make A New Scene" in chapter5.
What is it for?