Understanding Android Activity Lifecycle (Part Three)

Today i am gonna ask a question and later we will try to answer that :p

Observations: Well we understood that when we hit the home or multitask button, the current Activity goes to background, but before going to background it called onPause() method for sure.

Question 1: Unfortunately this method also gets called

1. when the user close the application forcefully
2. when Android it self destroy the Activity.
3. when user hits the back button

So curious minds want to know, how can i distinguishes among them.

coming soon
Understanding Android Activity Lifecycle (Part Four)

Enjoy 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s