Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi,

I'm testing my application on LGVX6000 , the application saves it's preferences and retrieves them properly.

But once I switch the device OFF and switch it ON again IShell_GetPrefs returns EFAILED.

Can anyone please help me out?

-Palchin

P.S. This is my third query posted to any forum and I've never recieved a single reply for any of my previous queries.

Hi,
I had called IShell_SetPrefs with sizeof(m_Prefs) where m_Prefs is a variable of structure type CMyPrefs. After I changed this to sizeof(CMyPrefs), preferences are being retieved fine. Even after the device is reset.
Thanks anyways to all who viewed my query.
:)
-Palchin

Hi,
I had called IShell_SetPrefs with sizeof(m_Prefs) where m_Prefs is a variable of structure type CMyPrefs. After I changed this to sizeof(CMyPrefs), preferences are being retieved fine. Even after the device is reset.
Thanks anyways to all who viewed my query.
:)
-Palchin

I am facing the same issue on the Moto W766 but mine is also related to the MaxFileCnt entity.
My logic works fine when there is space in the file system. The preferences get stored and are retrieved after the phone is restarted.
The issue occurs when i use MaxFileCnt utility to fill up the space. Then when i restart the application, i never get the Prefs stored and have to recreate the prefs.
The struct I store in the FS is:
typedef struct _scAppletPrefs{
uint32 iAppSettings;
char szMobileID[APP_MOBILE_ID_SIZE +1];
char szUserID[APP_MOBILE_ID_SIZE +1];
scAppPrefs;
The code i use to load the prefs in the InitApp section is :
if(ISHELL_GetPrefs(pMe->pIShell, APP_CLS_ID, APP_PREFS_VERSION, (void *)&pMe->cPrefs, sizeof(scAppPrefs)) != SUCCESS)
{
MEMSET(&pMe->cPrefs, 0, sizeof(scAppPrefs);
// Load initial settings
......
// Save the settings
ISHELL_SetPrefs(pMe->pIShell,APP_CLS_ID, APP_PREFS_VERSION, (void *)&pMe->cPrefs, sizeof(scAppPrefs));
}
I also make another call in the logic when a user updates the information
ISHELL_SetPrefs(pMe->pIShell,APP_CLS_ID, APP_PREFS_VERSION, (void *)&pMe->cPrefs, sizeof(scAppPrefs));
Any idea what i could be doing wrong?

I am facing the same issue on the Moto W766 but mine is also related to the MaxFileCnt entity.
My logic works fine when there is space in the file system. The preferences get stored and are retrieved after the phone is restarted.
The issue occurs when i use MaxFileCnt utility to fill up the space. Then when i restart the application, i never get the Prefs stored and have to recreate the prefs.
The struct I store in the FS is:
typedef struct _scAppletPrefs{
uint32 iAppSettings;
char szMobileID[APP_MOBILE_ID_SIZE +1];
char szUserID[APP_MOBILE_ID_SIZE +1];
scAppPrefs;
The code i use to load the prefs in the InitApp section is :
if(ISHELL_GetPrefs(pMe->pIShell, APP_CLS_ID, APP_PREFS_VERSION, (void *)&pMe->cPrefs, sizeof(scAppPrefs)) != SUCCESS)
{
MEMSET(&pMe->cPrefs, 0, sizeof(scAppPrefs);
// Load initial settings
......
// Save the settings
ISHELL_SetPrefs(pMe->pIShell,APP_CLS_ID, APP_PREFS_VERSION, (void *)&pMe->cPrefs, sizeof(scAppPrefs));
}
I also make another call in the logic when a user updates the information
ISHELL_SetPrefs(pMe->pIShell,APP_CLS_ID, APP_PREFS_VERSION, (void *)&pMe->cPrefs, sizeof(scAppPrefs));
Any idea what i could be doing wrong?