A developer designs a game application with MainAbility on the home page, click the game icon on the desktop, and then press the Home button to hide the game in the background, how does the life cycle of MainAbility change?

A developer designs a game application with MainAbility on the home page, click the game icon on the desktop, and then press the Home button to hide the game in the background, how does the life cycle of MainAbility change?
A . onStart ()→onResume()―onInActive()→onBackground()
B . onStart()→onActive()→onInActive()→onStop()
C . onStart()―onActive()→onInActive()
D . onStart()→onActive()→onlnActive()→onBackground()

Answer: D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments