Hi all,
can any one figure out the error in the below code
SmsManager sm;
int trc=0;
SmsListener *sl=new SmsListener();
sm.Construct(*sl);
String res="";
IList *mlist=sm.SearchMessageBoxN(SMS_MESSAGE_BOX_TYPE_ALL,&res,0,1,trc);
result r=GetLastResult();
if(r==E_SUCCESS)
{
SmsMessage* pSmsMessage = null;
pSmsMessage = (SmsMessage*)mlist->GetAt(0);
int msgid=pSmsMessage->GetId();
String mdata=sm.GetFullText(msgid);
AppLog("mdata is %ls",mdata.GetPointer());
AppLog("at the end of backup sms");
}
else
{
AppLog("error");
}
following priviliges added in the manifest file
messaging.read
messaging.write
application.launch