When onCreate (Bundle savedInstanceState) , make sure savedInstanceState not null. As indicated onCreate :
savedInstanceState If the activity is reinitialized after it was previously closed, then this package contains the data that it most recently delivered to onSaveInstanceState (Bundle). Note: Otherwise, it is null.
See also onSaveInstanceState () , which is not part of the normal life cycle, but is called before the action is killed.
Note: if the user does A ----> B ----> C -back → B ----> C, then the second time C is created, the transferred set will be null , since this is a new instance that has not been recreated after that how they killed him.
source share