I'm writing my first titanium app and am wondering what is the best way to manage a users settings.
Part of the app includes creating a quote. I want to give the user the ability to set a quote reference number start. So it'll be 'Q0001' say but the user can change it to 'QUOTE0001' so I have a text field on a settings page where the user woulod enter 'Quot开发者_运维百科e' and it is then prepended to a incrementing number.
Is it best to store this in a config file, or database? Or does Titanium have a set way of doing config variable?
Thanks,
Billy
I would use properties for that: Titanium
Simply use Titanium.App.Properties.setString("username", textfield.text);
精彩评论