MCQs > IT & Programming > Android Game Development > Consider the following logic in an Android game: 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?

Android Game Development MCQs

Consider the following logic in an Android game:

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?


Answer

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

Android Game Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Android Game Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it