The following is required - the user sees the line "Enter your target" clicks on this line, adds text and by pressing the "ok" button on the keyboard, the entered text should be saved and shown at all subsequent openings of the application, how to implement it?
TextViewis required,EditTextis a successor toTextViewand so (implements allTextViewmethods and parameters).EditTexthas anandroid:hintparameter that displays an input prompt. How to save input is a lot of options and you cannot choose the right one from your question, since you didn’t write any implementation details, but perhaps you can be saved inSharedPreferencesusingonSaveInstanceState()andonRestoreInstanceState(). - pavlofffandroid:hintproperty. When you enter values in the field, the prompt will disappear. If you delete all the values from the field, it will reappear. About the subsequent opening of the application with the saved data is worth looking towards thePreferences. - nuqss