Per the documentation:
void onRestoreInstanceState (Bundle savedInstanceState)
This method is called between
onStart()
andonPostCreate(Bundle)
.void onSaveInstanceState (Bundle outState)
If called, this method will occur after onStop() for applications targeting platforms starting with Build.VERSION_CODES.P. For applications targeting earlier platform versions this method will occur before onStop() and there are no guarantees about whether it will occur before or after onPause().