I want to save the data when user input edit text.
It can show on recyclerView and the app can show it again when the app had restarted.
I try to user share
If you have a large amount of data, you need to have SQL. If you want to use shared preference, you may try this:
private void saveBlood(){
SharedPreferences preferences = getSharedPreferences("uerInputBlood", MODE_PRIVATE);
SharedPreferences.Editor editor = preferences.edit();
listData.clear();
editor.putInt("count", listData.size());
for(int i=0; i
Hope it help :)