Created
March 30, 2019 04:16
-
-
Save NaturalizerINA/6b7f01d32b3a72fa6a801ef9f483cab8 to your computer and use it in GitHub Desktop.
this is example of save instance state in activity 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void onSaveInstanceState(Bundle outState) { | |
super.onSaveInstanceState(outState); | |
outState.putString("reply_text", mReplyTextView.getText().toString()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment