开发者

Titanium: Best way to manage user settings

开发者 https://www.devze.com 2023-04-01 04:59 出处:网络
I\'m writing my first titanium app and am wondering what is the best way to manage a users settings.

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);

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号