Quick Answer: What Is Bundle savedInstanceState in Android?
Contents What Is the savedInstanceState Bundle? the savedInstanceState Is a Reference to a Bundle Object That Is Passed into the onCreate Method of Every...
What is the savedInstanceState Bundle? The savedInstanceState is a reference to a Bundle object that is passed into the onCreate method of every Android Activity. Activities have the ability, under special circumstances, to restore themselves to a previous state using the data stored in this bundle.
What is super onCreate savedInstanceState in Android?
By calling super. onCreate(savedInstanceState); , you tell the Dalvik VM to run your code in addition to the existing code in the onCreate() of the parent class. If you leave out this line, then only your code is run. The existing code is ignored completely.
Must Read
What is the purpose of onCreate () function in Android?
onCreate(Bundle savedInstanceState) Function in Android:
Basically Bundle class is used to stored the data of activity whenever above condition occur in app. onCreate() is not required for apps. But the reason it is used in app is because that method is the best place to put initialization code.