Your question is quite confusing but if you override onBackPressed()
you can get the data.
@Override
public void onBackPressed()
{
String text = myEditText.getText().toString();
// save text
super.onBackPressed();
}
I know you said you did this but show how you are doing it if this doesn't work. This will put whatever the user has typed in the text
variable then you can save it in SharedPreferences
or wherever you want.
You can also do the same thing in onPause()
if you want it to save if, say, something else comes in the foreground.