On receiving onPause() event, pause the music and set onFocusChanged() as false and after receiving onResume(), wait for onFocusChanged(true) message before resuming the background music.
What does the above logic do in the game?
Correct Answer:
When the game is paused, its music stops and when the user resumes it and the game regains focus, the background music starts again.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Android Game Development MCQ Questions