2

When i press power key in my android game, the activity's onPaused get called as expected, but onResume is also get called after that, which cause the game music playing with lock screen turned on. And the screen is not turned off as expected.

The screenOrientation is set to landscape, and configChanges="screenSize|fontScale|orientation|keyboardHidden|keyboard".

I've searched for hours on the google and android documentation, but got nothing. Hope someone can enlighten me.

4

0 に答える 0