屏幕旋转时保留原始意图包?

Original intent bundle retained upon screen rotation?

创建时传递给 activity 的原始信息(例如 getIntent().getExtras() 中的 Intent Bundle)是否在屏幕方向更改时保留?我可以在轮换后再次调用 getIntent().getExtras() 来再次获取信息吗?或者我是否需要自己将该信息保存在 onSaveInstanceState 中并从 savedInstanceState Bundle 中检索它?

Is the original info passed to an activity at creation (e.g. an Intent Bundle from getIntent().getExtras()) retained when the screen orientation is changed?

是的,它被保留了。它还保留用于其他配置更改(如显示的键盘、屏幕尺寸更改等)

Can I just call getIntent().getExtras() again after rotation to obtain the info again?

是的,你可以。

Or do I need to save that info myself in onSaveInstanceState and retrieve it from the savedInstanceState Bundle?

无需手动保存