documents folder in project sandbox not saving files.

I set the file with in my project sandbox within the documents folder to change score and it works but when I relaunch my app the score sets back to 0 why is that???

I believe the sandbox is removed if you close the simulator.

You wouldn’t happen to know where the files are actually saved on an android phone when using DocumentsDirectory?
 

if you are on a mac go to simulator and go up to file and go to project sandbox go into highlighted folder and there it is.

and its for a highscore so I don’t want it to reset every time.

Sandbox is not removed when you close the simulator, not on OSX at least and I don’t see why it would be on Windows.

Have you checked that the file is definitely in the sandbox after you save your data, and that the data is correct?

Are you definitely loading the data from the file when you resume the app?

I believe the sandbox is removed if you close the simulator.

You wouldn’t happen to know where the files are actually saved on an android phone when using DocumentsDirectory?
 

if you are on a mac go to simulator and go up to file and go to project sandbox go into highlighted folder and there it is.

and its for a highscore so I don’t want it to reset every time.

Sandbox is not removed when you close the simulator, not on OSX at least and I don’t see why it would be on Windows.

Have you checked that the file is definitely in the sandbox after you save your data, and that the data is correct?

Are you definitely loading the data from the file when you resume the app?