Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to save data when app closes/restarts?

Hi,

 

I'm new to fitbit app development and my coding skills are basic. I'm trying to develop an app that tracks timestamps saved by the user. The app shows the last 5 saved times. My problem is that if the app closes/restarts all the data is removed. 

 

My guess is to write the data to a file, and every time the app starts it reads the file and loads the stored data to the app. I've tried someting like that but I can't get it working.

 

How do I save data? Can you please write an example to do this.

 

Regards,

Mimmi

 

 

Best Answer
1 REPLY 1

Have a skim through here (check out loadSettings() and associated code).

Peter McLennan
Gondwana Software
Best Answer