onSaveInstanceState not call

PHOTO EMBED

Wed Mar 30 2022 03:55:35 GMT+0000 (Coordinated Universal Time)

Saved by @thiennt8 #android #kotlin

You need to override onSaveInstanceState(Bundle outState).

The method you're overriding only gets called if with the attribute persistableMode is set to persistAcrossReboots in your Manifest.
content_copyCOPY

https://stackoverflow.com/questions/33968879/onsaveinstancestate-is-not-called-on-orientation-change-before-ondestroy-to-sa