@Override public void onSaveInstanceState(Bundle outState, PersistableBundle outPersistentState) { // outState.putSerializable(INSTALLED_WALLET, lastWallet); outState.putString(WALLET_PUBLIC_KEY, lastWallet.getWalletPublicKey()); super.onSaveInstanceState(outState, outPersistentState); }
/** * Called to retrieve per-instance state from an activity before being killed so that the state * can be restored in onCreate(Bundle) or onRestoreInstanceState(Bundle) * * @param outState */ @Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); }