Projects > cpp > Issues > Bug #3158

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

onResume can be called when the application is in background

Bug #3158 [Closed]
seagull 2013-11-11 15:49 . Updated about 2 years ago

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

walzer@cocos2d-x.org 2014-10-08 02:46

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

Atom PDF

Status:Closed
Start date:2013-11-11
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:android
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.