Save and Load data restart the whole app

Hi Friends,

I want to save and load data for my game, and i did use this method(https://github.com/robmiracle/Simple-Table-Load-Save-Functions-for-Corona-SDK), but when i save the data,it restarts the whole app.Need advise.

Thanks in advance.

You need to post some code.  There is nothing in that code that would restart the whole app.

Hi Rob,

First of all, thanks for your kind reply, i managed to fixed it, i used system.DocumentsDirectory for save and load using example from your github source.However, when i build apk and install in my Android device, there is error that its nil. Kindly advice me how to implement system.DocumentsDirectory so its compatible in simulator and device.

I still need to see your code.

Rob

You need to post some code.  There is nothing in that code that would restart the whole app.

Hi Rob,

First of all, thanks for your kind reply, i managed to fixed it, i used system.DocumentsDirectory for save and load using example from your github source.However, when i build apk and install in my Android device, there is error that its nil. Kindly advice me how to implement system.DocumentsDirectory so its compatible in simulator and device.

I still need to see your code.

Rob