0
I am making an application, where I have a list of questions, and if the user leaves the application or screen, I would like to save the questions he already answered, so when he goes back to that form, the answered questions will be saved in memory.
To do this, what would be the best option, SharedPreferences
or InputStrem
?
I believe the best option is the local data flock, SQLITE
– Leonardo Dias
But I didn’t want to save everything, because the form will be incomplete, only after I saved all the information, IE, that the user answered all the form so I would save in sqlite.
– Vinicius da Mata
And there is the option to save the form as it is answered in Sqlite? When the user finishes the questionnaire, assign "FINISHED" to a field of the questionnaire structure.
– E.Thomas
Using Sharedpreferences Android will be recording in Sqlite. The difference is that who controls it is not you. How many distinct questionnaires completed or in progress could you have? Sharedpreferences does not serve these cases. Inputstream?? Doesn’t have the function you seemed to assign him.
– Reginaldo Rigo