Explain me what is the life cycle of android activity?
Submitted by: MuhammadUser navigates between different screen or app, it goes through different states in their lifecycle. So an activity lifecycle consists of 7 different methods of android.app.Activity class i.e :
► onCreate() : In this state, the activity is created.
► onStart(): This callback method is called when the activity becomes visible to the user.
► onResume(): The activity is in the foreground and the user can interact with it.
► onPause(): Activity is partially obscured by another activity. Other activity that's in the foreground is semi-transparent.
► onStop(): The activity is completely hidden and not visible to the user.
► onDestroy(): Activity is destroyed and removed from the memory.
Submitted by: Muhammad
► onCreate() : In this state, the activity is created.
► onStart(): This callback method is called when the activity becomes visible to the user.
► onResume(): The activity is in the foreground and the user can interact with it.
► onPause(): Activity is partially obscured by another activity. Other activity that's in the foreground is semi-transparent.
► onStop(): The activity is completely hidden and not visible to the user.
► onDestroy(): Activity is destroyed and removed from the memory.
Submitted by: Muhammad
Read Online Sr. Android Developer Job Interview Questions And Answers
Top Sr. Android Developer Questions
☺ | Do you know Android Architecture? |
☺ | Tell me which programming language is used for Android App development? |
☺ | What is intents in Android? What are the different types of intents? |
☺ | Do you know what is the latest version of Android? List all the versions of Android? |
☺ | Do you know what is AAPT? |
Top Mobile Technologies Categories
☺ | Android Interview Questions. |
☺ | Wireless Communication Interview Questions. |
☺ | 3G Interview Questions. |
☺ | iPhone Interview Questions. |
☺ | Mobile App Architect Interview Questions. |