iamjonesy
iamjonesy

Reputation: 25122

Titanium: Best way to manage user 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 'Quote' 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

Upvotes: 0

Views: 1169

Answers (1)

KrauseFx
KrauseFx

Reputation: 11751

I would use properties for that: Titanium

Simply use Titanium.App.Properties.setString("username", textfield.text);

Upvotes: 1

Related Questions