How to show Dialog from a static method
问题 In my game, which is done for both Android and IOS using cocos2dx , I have to show video(for Android). I am planning to show it in Dialog(on top of game view). Problem is that, I don't have any Activity referenced to show Dialog(as Dialogs can only be shown in Activities). Even though, In cocos2dx lib folder, there is a Cocos2dxActivity but I am not getting how to make use of it. From C++ code, I am calling a static method from Java class as below void LMJNICommunicator::showVideo() { LOGD(