Bundle in the onCreate method must contain the state of your activity before it is killed.
A simple example, when you change the orientation of your device, your activity is recreated. Imagine that the user fills out a long form and he / she accidentally changes orientation. When the application is restarted, all entered data will be lost if you do not save this information. One possibility is to use the package.
If you want to know how to use it, I would recommend that you read this question.
Macarse
source share