I want one activity to NOT save state when going to background (for example a spinner or an editText forgetting their state and return to original state when the activity comes back to foreground). How can I achieve that? Note that this needs to be a one-line deal because it is for Mutation Testing purposes.
I already tried the android:saveEnabled="false" in the xml of the activity, the onCreate(SaveInstance:null) in the creation of the activity and messing with the override of onSavedInstance(outState) but none of that seems to work.
Any suggestions?