Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
amitshekhariitbhu committed Jan 28, 2024
1 parent 9a52acd commit c186d44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ Android Interview Questions and Answers:

* **Why do we need to call setContentView() in onCreate() of Activity class?** - [Learn from here](https://www.youtube.com/watch?v=U1aHAt7XC5I)

* **What is onSavedInstanceState() and onRestoreInstanceState() in activity?**
- onSavedInstanceState() - This method is used to store data before pausing the activity.
* **What is onSaveInstanceState() and onRestoreInstanceState() in activity?**
- onSaveInstanceState() - This method is used to store data before pausing the activity.
- onRestoreInstanceState() - This method is used to recover the saved state of an activity when the activity is recreated after destruction. So, the onRestoreInstanceState() receives the bundle that contains the instance state information.

* **What is `Fragment` and its lifecycle?** - [Learn from here](https://developer.android.com/guide/fragments/lifecycle)
Expand Down

0 comments on commit c186d44

Please sign in to comment.