What is the preferred cross platform method of storing preferences? Anything like iOS property lists?

Should I just go ahead and use SQLIte for storing preferences? I’d prefer iOS property lists actually, but I don’t know if Android uses anything like that, and it doesn’t look like Corona SKD supports the format. [import]uid: 22423 topic_id: 32834 reply_id: 332834[/import]

I always use for any persistent settings/data… like preferences. [import]uid: 147305 topic_id: 32834 reply_id: 130546[/import]

I always use for any persistent settings/data… like preferences. [import]uid: 147305 topic_id: 32834 reply_id: 130546[/import]

Actually the best thing to do is to store your preferences internally as a Lua table and then use something like this:

http://omnigeek.robmiracle.com/2012/02/23/need-to-save-your-game-data-in-corona-sdk-check-out-this-little-bit-of-code/

To save your table to a text file and read it back in. The link above has two simple functions that take a Lua table, convert it to JSON and store it in a flat file. You don’t have to worry about any of the file IO bits or understanding JSON.

plist files are basically XML and to use something like a plist you’re going to have to parse it, load it into a Lua table anyway and have a way to save it back out in the plist XML format. It’s a lot of over head for something pretty simple. [import]uid: 19626 topic_id: 32834 reply_id: 130548[/import]

Actually the best thing to do is to store your preferences internally as a Lua table and then use something like this:

http://omnigeek.robmiracle.com/2012/02/23/need-to-save-your-game-data-in-corona-sdk-check-out-this-little-bit-of-code/

To save your table to a text file and read it back in. The link above has two simple functions that take a Lua table, convert it to JSON and store it in a flat file. You don’t have to worry about any of the file IO bits or understanding JSON.

plist files are basically XML and to use something like a plist you’re going to have to parse it, load it into a Lua table anyway and have a way to save it back out in the plist XML format. It’s a lot of over head for something pretty simple. [import]uid: 19626 topic_id: 32834 reply_id: 130548[/import]

Oh nice! Thanks, man, that’s so simple. [import]uid: 22423 topic_id: 32834 reply_id: 130579[/import]

Oh nice! Thanks, man, that’s so simple. [import]uid: 22423 topic_id: 32834 reply_id: 130579[/import]