I am using cocos2dx-2.1.5. and the problem cames when sometimes I press a CCMenuItemImage button and it starts flickering. When the button is pressed its callback on C++ calls a Java method to perform login on Facebook. This issue also happens when I perform an In App Purchase.
I have deducted that this issue only happens when a Java Dialog is opened like the Facebook dialog or the IAP dialog. So I have managed to avoid this issue by scheduling the JNI method that calls login to Facebook, but I do not know if there is another way to solve this kind of problem.
I would apreciate any help,