I don’t see why you would like to do that, but sure. If saving to SharedPrefs is all you want, it’s quite straight forward
SharedPreferences sharedPref = getPreferences(Context.MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPref.edit();
editor.putString("yourMessageKey", message);
editor.commit();
And of course, to read it back you
SharedPreferences sharedPref = getPreferences(Context.MODE_PRIVATE);
String message = sharedPref.getString("yourMessageKey", defaultValue);
2
solved save text message in Shared Preferences [duplicate]