android_guides
android_guides copied to clipboard
How save data(For Example EditText ) in Fragment
How can I save changes in text fields when switching fragments, I need to return to the fragment to obtain data that the user entered before switching
I would think callback method still works?
used android shared preference on click save data and back previous fragment check onResume function shared preference if value exist mEditText.setText(mSharedPreference_value);