when i start a Cocos2dxActivity and show another activity (third party sdk activity or custom activity) sometime, the cocos2dxActivity is flickering. when the another activity appear completed, the cocos2dxActivity return normally.
public class MyActivity extends Cocos2dxActivity {
public static void showSDKLogin() {
sdkMgr.showLogin();
}
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
}
static {
System.loadLibrary(“game”);
}
}
in sdkMgr.showLogin() function it start a new activity to show some dialog. i call it by jni in cocos2dx c++ code.
how to solve the flicker problem
ps: sorry about my poor english. i wish you guys know what i mean
I’m integrating Samsung In-App purchasing, and when the Samsung’s purchase dialog appears, the game screen flickers. It’s like when there are two screens which are switching at 60FPS.
The same thing happens with Google Play game services.
This happens also when there’s no dialog displayed, but another activity is started to do some work, like authenticating the user with Samsung Account.
This is a serious issue. I don’t know is it our fault or there is a bug in cocos2dx?
i think it is our bug, a lot of games using the same sdk api do not flicker. but i can’t find any suggestion with google
Attila Szilágyi wrote:
I have the same problem!
>
I’m integrating Samsung In-App purchasing, and when the Samsung’s purchase dialog appears, the game screen flickers. It’s like when there are two screens which are switching at 60FPS.
>
The same thing happens with Google Play game services.
>
This happens also when there’s no dialog displayed, but another activity is started to do some work, like authenticating the user with Samsung Account.
>
This is a serious issue. I don’t know is it our fault or there is a bug in cocos2dx?
@khanna27rahul
i also experienced the same problem and did the fix as mentioned above…but what if the net is very slow and trying to connect. In my case the net is continuously trying to connect.When I press back key the account screen come and then i click on cancel.But still i cant touch any of my cocos2dx button there and the screen view is still on google.How can i solve that problem. I just want a timeout if net doesnt connect in 10 seconds.