Activity is one of the instances of an android application and we can create activities in android application. Each has it’s own life cycle and callbacks. Lifecycle has been managed by android operating system. An android application existing either in one of the following state of lifecycle.
- Create
- Start – UI is visible now
- Pause – UI is Partially visible
- Stop – UI is Hidden
- Destroy
Callback functions in activity class
- onCreate
- onStart
- onPause
- onStop
- onDestroy