But the reason it is used in app is because that method is the best place to put initialization code.
from horizontal to vertical or vertical to horizontal) of activity gets changed or when an Activity gets forcefully terminated by any Operating System then savedInstanceState i.e.
2 Example of onCreate(Bundle savedInstanceState):.1 onCreate(Bundle savedInstanceState) Function in Android:.