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

Developer

Forums

Forums:

Hi all,

I am trying an application that gets SMS from the inbox using ISMSSTORAGE API's.
If I use ISMSSTORAGE_ReadMsg then it is crashing the app. If I use ISMSSTORAGE_EnumMsgInit and ISMSSTORAGE_EnumNextMsg then getting the junk characters in ISMSMsg structure. Find the code snippet here..

Create instaces are successful for AEECLSID_SMSSTORAGE, AEECLSID_SMS, AEECLSID_SMSMSG...

1. By reading msg... it is crashing with this...

CALLBACK_Init(&pMe->cb, DisplayMsg, pMe);
ISMSSTORAGE_ReadMsg(pMe->pSMSStorage, AEESMS_NV_CDMA, 0, &pMe->cb, &pSMSMsg, &pMe->dwResult);

Getting pMe->dwResult as 20 for RAZR and 14 for VX9800 devices. But on VX5300 and VX8300 it is crashing..

2. By EnumNextMsg...

ISMSSTORAGE_EnumMsgInit(pMe->pSMSStorage, AEESMS_NV_CDMA, AEESMS_TAG_NONE, NULL, &pMe->dwResult);
ISMSSTORAGE_EnumNextMsg(pMe->pSMSStorage, AEESMS_NV_CDMA, NULL, &m_ndxMsg, &pMe->pSMSMsg, &pMe->dwResult);

if(pMe->dwResult == SUCCESS)
{
ISMSMSG_GetOpt(pMe->pSMSMsg, MSGOPT_FROM_DEVICE_SZ, &pwo);

// Get Message
ISMSMSG_GetOpt(pMe->pSMSMsg, MSGOPT_PAYLOAD_SZ, &pwo);
DBGPRINTF("Text ISO:%s", (char *)pwo.pVal);

Getting junk values in pwo.pVal on VX5300 and no data in VX9800 and RAZR..

I checked all the previleges and dependencies in the mif..
Can anybody give the suggestion how to get the stored sms from the device.

Thanks in advance....

As far I know in the Razr smsstorage is not hooked up with OEM provided default messaging application, and that's why you get 0 count, that may well be the case of VX9800.

As far I know in the Razr smsstorage is not hooked up with OEM provided default messaging application, and that's why you get 0 count, that may well be the case of VX9800.

I tried on LG Chocolate, Samsung u 520 , Kyocera 323(saber).
On LG Chocolate when ISMSSTORAGE_ReadMsg is called i get the no of voice mail message the device has received. Looks like its not pointing to the Inbox storage when AEESMS_NV_CDMA is used.
On Samsung , Kyocera 323 when ISMSSTORAGE_ReadMsg is called i get err 14 which is EBADPARM. I have the same code which did not give any error on LG Chocolate.
Were anyone able to use these API to access inbox of the phone?

I tried on LG Chocolate, Samsung u 520 , Kyocera 323(saber).
On LG Chocolate when ISMSSTORAGE_ReadMsg is called i get the no of voice mail message the device has received. Looks like its not pointing to the Inbox storage when AEESMS_NV_CDMA is used.
On Samsung , Kyocera 323 when ISMSSTORAGE_ReadMsg is called i get err 14 which is EBADPARM. I have the same code which did not give any error on LG Chocolate.
Were anyone able to use these API to access inbox of the phone?