Android
Programming and Technical
Programming
Technical
What is the life cycle of foreground activity in android?
Options
1) onCreate() −> onStart() −> onResume() −> onStop() −> onRestart
2) onCreate() −> onStart() −> onResume() −>onStop()
3) onCreate() −> onStart() −> onResume()
4) None of the Above
Read Solution (Total 5)
-
- 2) onCreate() −> onStart() −> onResume() −>onStop()
- 7 years agoHelpfull: Yes(9) No(4)
- 3) onCreate() −> onStart() −> onResume()
- 7 years agoHelpfull: Yes(1) No(2)
- 2.onCreate() −> onStart() −> onResume() −>onStop()
- 7 years agoHelpfull: Yes(0) No(2)
- 3) onCreate() −> onStart() −> onResume()
as onStop() is used when activity goes background() - 7 years agoHelpfull: Yes(0) No(0)
- 4) None of the Above
correct is - onCreate() −> onStart() −> onResume() -> onPause() -> onStop() −> onRestart() -> onDestroy() - 7 years agoHelpfull: Yes(0) No(0)
Android Other Question