Regarding persistent store | developer.brewmp.com Regarding persistent store | developer.brewmp.com

Developer

Regarding persistent store

Forums:

Hi all,

I am new to BREW and not clear what ISHELL_SetAppPrefs() does? The api did not give me much info as to wat it does? does it read and write to the persistent store?

Thanx

diya007 wrote:Hi all,
I am new to BREW and not clear what ISHELL_SetAppPrefs() does? The api did not give me much info as to wat it does? does it read and write to the persistent store?
Thanx
On every brew phone there is a "prefs" file. You can write in it whatever you want in it. It will append a new field that it used only by your application ( it knows what are your app data by searching the CLASS ID field ). if you want to see what this file contains look with a hexeditor on the file available in the phone or look in the app main folder of your simulator and you'll find a prefs.dat file. what you must remember is that your application is identified by the class id, so...you won't be able to use this file for sharing purposes.

diya007 wrote:Hi all,
I am new to BREW and not clear what ISHELL_SetAppPrefs() does? The api did not give me much info as to wat it does? does it read and write to the persistent store?
Thanx
On every brew phone there is a "prefs" file. You can write in it whatever you want in it. It will append a new field that it used only by your application ( it knows what are your app data by searching the CLASS ID field ). if you want to see what this file contains look with a hexeditor on the file available in the phone or look in the app main folder of your simulator and you'll find a prefs.dat file. what you must remember is that your application is identified by the class id, so...you won't be able to use this file for sharing purposes.

Franz.Iacob wrote:On every brew phone there is a "prefs" file. You can write in it whatever you want in it. It will append a new field that it used only by your application ( it knows what are your app data by searching the CLASS ID field ). if you want to see what this file contains look with a hexeditor on the file available in the phone or look in the app main folder of your simulator and you'll find a prefs.dat file. what you must remember is that your application is identified by the class id, so...you won't be able to use this file for sharing purposes.
Hi thanx for your reply.
Could you tell me where this prefs file is stored? If it is stored as persistent data then where actually it is?
Actually i am porting from BREW to Symbian and trying to store persistent data from my application in Symbian. But i am not getting clear idea where such kind of storage takes place if it is persistent?
Thanx

Franz.Iacob wrote:On every brew phone there is a "prefs" file. You can write in it whatever you want in it. It will append a new field that it used only by your application ( it knows what are your app data by searching the CLASS ID field ). if you want to see what this file contains look with a hexeditor on the file available in the phone or look in the app main folder of your simulator and you'll find a prefs.dat file. what you must remember is that your application is identified by the class id, so...you won't be able to use this file for sharing purposes.
Hi thanx for your reply.
Could you tell me where this prefs file is stored? If it is stored as persistent data then where actually it is?
Actually i am porting from BREW to Symbian and trying to store persistent data from my application in Symbian. But i am not getting clear idea where such kind of storage takes place if it is persistent?
Thanx

diya007 wrote:Hi thanx for your reply.
Could you tell me where this prefs file is stored? If it is stored as persistent data then where actually it is?
Actually i am porting from BREW to Symbian and trying to store persistent data from my application in Symbian. But i am not getting clear idea where such kind of storage takes place if it is persistent?
Thanx
use bitpim to look for it in the phone. Take big care because this persistent storage is a little buggy on some phones ( look for the disable/restore document to see one of the possible bugs ) . I write that type of data in another file to not encounter any other bugs( just simulating the RMS from Gsm phones ).

diya007 wrote:Hi thanx for your reply.
Could you tell me where this prefs file is stored? If it is stored as persistent data then where actually it is?
Actually i am porting from BREW to Symbian and trying to store persistent data from my application in Symbian. But i am not getting clear idea where such kind of storage takes place if it is persistent?
Thanx
use bitpim to look for it in the phone. Take big care because this persistent storage is a little buggy on some phones ( look for the disable/restore document to see one of the possible bugs ) . I write that type of data in another file to not encounter any other bugs( just simulating the RMS from Gsm phones ).

Hi thanx for ur reply.
Does anyone know if there is any equivalent of ISHELL_SetAppPrefs() in Symbian?

Hi thanx for ur reply.
Does anyone know if there is any equivalent of ISHELL_SetAppPrefs() in Symbian?

diya007 wrote:Hi thanx for ur reply.
Does anyone know if there is any equivalent of ISHELL_SetAppPrefs() in Symbian?
you can use the DBMS.
to easely view your db in the phone, look at this link
http://snippets.dzone.com/posts/show/1465

diya007 wrote:Hi thanx for ur reply.
Does anyone know if there is any equivalent of ISHELL_SetAppPrefs() in Symbian?
you can use the DBMS.
to easely view your db in the phone, look at this link
http://snippets.dzone.com/posts/show/1465