What are the life cycle methods of android activity?

There are 7 life-cycle methods of activity. They are as follows:

  • onCreate()
  • onStart()
  • onResume()
  • onPause()
  • onStop()
  • onRestart()
  • onDestroy()