Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Registry in Symbian?

3 replies · 1,998 views · Started 24 September 2003

I am a newbie to symbian. I want to save some settings in my application after my application quits. For example, I want to save the choice in a choice list and the state in a check box. What is the best way to do it? Is there something like registry in windows for symbian?

cwp wrote:I am a newbie to symbian. I want to save some settings in my application after my application quits. For example, I want to save the choice in a choice list and the state in a check box. What is the best way to do it? Is there something like registry in windows for symbian?

So what's the answer to this question?

No "Registry" like in Windows (which is probably a good thing, as it is the root & cause of many problems there).

You can simply use file I/O or DBMS interfaces to save settings you want to save in your own file in the application installation directory (or folder, if you prefer). Save them automagically as data changes, or when the application closes, and read them when the application is started.

Start reading at the section "Stores Overview" in the Symbian SDK documentation.

You should store program states and so in the directory C:\System\Apps\<appname>\<appname>.ini and any other databases or files in the same directory as the app is installed (same path, just change the drive letter).