0

I am developing one small application where i am adding items one by one in the recyclerview if the user click on the '+' symbol in the menu bar.

This is my app where am adding items in recyclerview

The problem is i want to save the data(items) permanently in recyclerview even we close the app.So that the user can come again and edit the item which are in recyclerview.

Kindly let me know how can i achieve this since i am new to this..Thanks for your help!!!

2 Answers2

0

Here is the lots of option available to store data in locally or live,

  • One is store in Preference help of json or normaly,
  • Second way is store inside of local Database like SQLLite or also Realme is available,
  • Third way is store it online help of server or directly using firebase,
  • Another way is store it in file, and read and write and edit,

I am suggesting if your data size is small then store with Preference and data size is big then take data base and if you dont want to store locally then you can take help of firebase or web service.

Dhaval Solanki
  • 4,589
  • 1
  • 23
  • 39
0

to do this you have several options :

1- save in SharedPreferences

2- use DataBase : sqliteDatabase or Realm

3- write in File

Milad Ge
  • 160
  • 1
  • 9