I print a log on AppDelegate::applicationDidEnterBackground
and AppDelegate::applicationWillEnterForeground
.
void AppDelegate::applicationDidEnterBackground() {
log("AppDelegate::applicationDidEnterBackground");
}
void AppDelegate::applicationWillEnterForeground() {
log("AppDelegate::applicationWillEnterForeground");
}
AppDelegate::applicationDidEnterBackground
is not called when power(screen) off on device.
But AppDelegate::applicationWillEnterForeground
is called when power(screen) on back.
So, I can’t stop background music.
I tested Galaxy S2(2.3) and Note 2(4.3) with latest commit on github develop branch.