i develop cocos2d-x android.
my question when user press power button, called ondestroy() after calling onpause(). connencted memory leak problem? why ondestroy() called @ time? when returns app on resume mode, doesn't go current screen. goes main screen. think it's connected problem- ondestroy() called after calling onpause(). right?
@override public void onpause(){ super.onpause(); ccdirector.shareddirector().pause(); } @override public void ondestroy(){ super.ondestroy(); ccdirector.shareddirector().end(); } thank help.
when send activity background destroyed time os. check if low on memory or try running application on device more memory if have one. times helps if restart phone.
Comments
Post a Comment