暂停和Dispose()方法没有得到所谓的ApplicationListener在libgdx [英] pause and dispose() not getting called in ApplicationListener in libgdx
问题描述
C>暂停()和的Dispose()
并没有获得调用。任何人都可以帮助我在此。
when I am calling exit()
method in onDestroy()
method of AndroidApplication, the pause()
and dispose()
of ApplicationListener were not getting called. Can anyone help me on this.
推荐答案
解决了。虽然从调用的AndroidApplication听众,并从中恢复回来,我使用的募集结果引发活动被关在暂停活动。由于我们知道,暂停不能被立即销毁。所以Dispose()方法不正确调用。相反,提高活动的,我用的对话框,再有就是杀死android应用的可能性。
Got Resolved. While calling the listener from AndroidApplication and reverting back from it, I used to raise an Activity resulting that raised Activity was kept in pause. As of we know that paused can't be destroyed immediately. So dispose() was not called properly. Instead of raising activity, I used dialogue box, then there is a possibility of killing android application.
这篇关于暂停和Dispose()方法没有得到所谓的ApplicationListener在libgdx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!