For my first Android app I have (hopefully) followed the tutorial at developer.android.com to the letter. The finished app has an EditText view where you can enter text and a SEND button which will open a new activity (DisplayMessageActivity) which displays the text in the EditText in large font.
I have noticed some inconsistent behaviour regarding the persistence of the text in the EditText. Assume I have entered some text there:
When I hit the Back button at the bottom of my phone and restart the app from the icon I loose the text.
When I hit the Home buttom at the bottom of my phone and restart the app from the icon I keep the text.
When I press the SEND button and leave the DisplayMessageActivity via the Back button at the bottom of my phone I keep the text.
When I press the SEND button and leave the DisplayMessageActivity via the arrow button in the action bar I loose the text.
Can anyone explain to me why the behaviour is different and what I have to do to retain the text in all four cases?