We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
onResume can be called when the application is in background
onResume can be called when the application is in background
Bug #3158 [Closed]
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8254
Status: | Closed | |
---|---|---|
Start date: | 2013-11-11 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | android | |
Target version: | - |
In Android onResume may be called when the lock screen of the phone is
still locked. For example music may start playing while the screen is locked.
Info: http://stackoverflow.com/questions/11731285/onresume-being-called-over-and-over-while-phone-screen-is-locked
I changed the code to make notification AppDelegate::applicationWillEnterForeground just when the application became visible for the user.
Pull request: https://github.com/cocos2d/cocos2d-x/pull/4096