I have a service that collects data, can I save the data in case of reboot or any other action that will restart the service, and how can I do it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will not necessarily find out when those sorts of events will occur. Save your data as you go.
Use a file. Or a database, which is a type of file. Or a
SharedPreferencesstructure, which is backed by a type of file.