seniorAndroid

What is Android Lifecycle?

Updated Apr 22, 2026

Short answer

Lifecycle defines the states of Activity/Fragment from creation to destruction.

Deep explanation

🔹 States

  • onCreate
  • onStart
  • onResume
  • onPause
  • onStop
  • onDestroy

---

🖼️

Markdown
![Activity Lifecycle](https://developer.android.com/static/images/activity_lifecycle.png)

---

🔹 System Insight

  • Prevent memory leaks
  • Manage resources properly

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Android interview questions

View all →