Different states of Android Activity

  • Paused
  • Stopped
  • Destroyed

1) Running

When a user is actively interacting with an Activity then the activity is in Running State.

2) Paused

When a partial or a transparent Dialog/Activity gets focus on the top of the previous Activity then the Activity goes to the paused state.

3) Stopped

When an activity gets completely hidden by another Activity or dialog then the Activity goes to stop state.

4) Destroyed

There are two main reasons when an activity goes to the destroyed state.

  • YOU
Putting up content takes a lot of time and effort 😓.
👏 clap 👏 If you think you learned something from this article.
You can find me on Stackoverflow,Github,and,on Linkedin.
Give feedback and feel free to correct mistakes.

Read More:

Create Multiple ViewHolders in a single RecyclerView

--

--

--

Android Developer | Arizona State University | NASA Psyche Research Aide

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rohit Singh

Rohit Singh

Android Developer | Arizona State University | NASA Psyche Research Aide

More from Medium

Android Unit Testing with Robolectric

Issues & Fixes in Nested ExpandableListView

Issues and fixes in Nested ExpandableListView

Page Objects for E2E Android UI testing

How to register keyboard shortcuts in Android’s menu to inform users