crash on

crash on
0.0 0


I made a dialog in onCreate(),when I called with JNI in C++,it crashed.
Here’s the code:

`static public void showNameInAndroid(String _strName) {

    Log.v("showNameInAndroid", _strName);// It passed.; // It crashed.


Minggo has told me that the thread of ccocos2d-x is different from Android thead.But I am a green hand,so I don’t know how to solve it .If you how to solve it,please help me. Thank you very much.


In fact, cocos2d-x has implemented CCMessageBox(). In android, it invoke Cocos2dxActivity::showMessageBox(), you can refer to it.