Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 27
Registered: ‎12-18-2012
My Device: Z10, Playbook
My Carrier: Viettel
Accepted Solution

Saving the app state

Hi everry body,

I'm want to save my app state and  I'm confused between using QSetting and save app state to "data" folder!

I found this: save state and QSetting

I don't know which is safer? I don't want any one can get infomation in my app state!

Thanks!

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Saving the app state

QSettings saves data to unencrypted file. There's currently no secure storage like iOS keychain access but it might appear in future. If your app requires encryption you'll have to implement it manually. For example, when storing passwords you can store a one-way hash of the password.

Andrey Fidrya, @zmeyc on twitter
Highlighted
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Saving the app state

[ Edited ]

I'm using QSettings - stores the settings in data folder inside your app sandbox, so its relative secure -

you can do a Base64 encoding so its not readable without dev-knowledge

for most kind of app-settings and state from my POV QSettings is OK

and its easy to test and debug from TargetFileSystemNavigator View

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner