How can I save data into a file for later retrieval?
Basically i want t make it possible for the user to configure the application using basic options.
So i want to store information for later use.
3 Answers
-
Ti.App.Properties. There's an example in the KitchenSink.
-
Note that the API docs (at least for desktop) incorrectly state that you save the Properties to disk using
.listProperties('/path/filename')
, the correct method is.saveTo('/path/filename')
-
AFAIK on Ti mobile, the properties are automatically saved.