temnoi temnoi - 1 year ago 72
Android Question

Prevent field from adding to savedInstanceBundle

Is there are any way to not include the field in

in Android when
void onSaveInstanceState(Bundle outState)
is called?

Answer Source

Fields are not added automatically. You have to write/read each one by yourself. If that's your case, just don't do anything with that field.

If there's a field which is already added (like visibility or text in TextView), you have to find it and remove it after calling super.onSaveInstanceState().

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download