in my app, I perform an action onDestroy
. But I don't want the action if the app is rotated. I used onSaveInstanceState
to save variables when the app is rotated and check if saveInstanceState != null
onCreate
.
I have not seen anyone check for saveInstanceState
onDestroy
, is it okay to do that?