By overriding an Activity’s onSaveInstanceState event handler, you can use its Bundle parameter
to save UI instance values. Store values using the same get and put methods as shown for
Shared Preferences, before passing the modified Bundle into the superclass’s handler,
This handler will be triggered whenever an Activity completes its active lifecycle, but only when it’s not
being explicitly finished (with a call to finish). As a result, it’s used to ensure a consistent Activity state
between active life cycles of a single user session. //适合用于一个会话过程的中间变量保存