@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putInt("peerType", peerType); outState.putInt("peerId", peerId); }