Can someone please explain why the value in my savedInstanceState is null? I have 3 widgets, an EditText, Button and TextView. The person types in what they want. The Phrase
You can define a String variable that is global to your activity and define it upon restoringInstanceState.
Looks a little something like this:
String userInput;
@Override
public void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState);
userInput = savedInstanceState.getString("example") // Refers to your "outState.putString "example" <-- key
output.setText(newString);