0

I am creating a Android application which crunches data from large files, every time doing this takes more time to start my application what is the solution to keep the crunched object alive every time, even the application is closed.

Sarath S
  • 9
  • 3
  • Maybe you can save the crunched data (the result) and then just load it, instead of processing all the data again – peshkira Jun 03 '18 at 20:14

1 Answers1

0

you need to save it before closing the application but, you have many cases:

in case of data not shared with other users, you can use

first: if the data size is small and unique you can use sharedPrefernce to store it and this is link to learn how to use it too

Second, if the data is too large and different values for each record you can use SQLite

in case of the data must be shared with other users you have to use an online database or firebase for that.

Moustafa EL-Saghier
  • 1,721
  • 1
  • 13
  • 43