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.
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.