Top "Activity-lifecycle" questions

Activities in the system are managed as an activity stack.

What is Activity.finish() method doing exactly?

I'm developing android applications for a while, and followed a lot of posts about activity life cycle, and application's life …

android activity-lifecycle ondestroy application-lifecycle
Removing an activity from the history stack

My app shows a signup activity the first time the user runs the app, looks like: ActivitySplashScreen (welcome to game, …

android android-activity activity-lifecycle
On logout, clear Activity history stack, preventing "back" button from opening logged-in-only Activities

All activities in my application require a user to be logged-in to view. Users can log out from almost any …

android android-lifecycle activity-lifecycle
Activity lifecycle - onCreate called on every re-orientation

I have a simple activity that loads a bitmap in onCreate. I find that if I rotate the device I …

android activity-lifecycle
Life cycle of Android Activity after pressing Back button

I am little confused between the life cycle of two activities. Suppose I have Activity A and Activity B. B …

android activity-lifecycle
Is onResume() called before onActivityResult()?

Here is how my app is laid out: onResume() user is prompted to login If user logs in, he can …

android android-activity android-lifecycle activity-lifecycle
Method to override when layout is destroyed in Android

I have a custom component which extends LinearLayout, I need to execute certain statements when Layout is destroyed or removed. (…

android view activity-lifecycle
finish() and the Activity lifecycle

I'm learning Android programming for a class, and I have a quick question about how finish() fits into the Activity …

android android-activity activity-lifecycle
Why implement onDestroy() if it is not guaranteed to be called?

According to the android Activity Lifecycle, the only callback guaranteed to be called (if an activity ever leaves the Running …

android android-activity activity-lifecycle
Does onDestroy() or finish() actually kill the activity?

Actually I know i am asking about the simple and basic concept of Android. But I am a little bit …

android memory-management activity-lifecycle ondestroy