Good day,
How to create SMS in Inbox without alert tone if device is not in silent mode ?
Thank's
Good day,
How to create SMS in Inbox without alert tone if device is not in silent mode ?
Thank's
Hi,
try to set these parameter for creating new sms in inbox without alert tone.....
TMsvEntry indexEntry;
indexEntry.SetInPreparation(ETrue);
indexEntry.iMtm =KUidMsgTypeSMS;
indexEntry.iType = KUidMsvMessageEntry;
indexEntry.SetVisible(ETrue);
indexEntry.SetUnread(EFalse);
Hopes, It help you!
Yes it works, i know, thanks. Sms will be as Readed. But if the sms need to be as UnReaded... it's not works
as: indexEntry.SetUnread(ETrue);
so i change my question....
how to disable alet tone if created sms need to be as UnReaded ?
Hi, kis_spn
It's not good... but as i see you are right, i dont see another way to create Unread SMS without alert tone...
Anyway... thank's !
Another one question:
When creates new SMS in Inbox, exists next code
for note that message was recieved from aAdress number. But when open this sms, does not shows any sender number. When i read the sms data from application, i can get this senders byCSmsHeader& iHeader = iSmsMtm->SmsHeader();
iHeader.SetFromAddressL(aAddress);
TMsvEntry entry = iSmsMtm->Entry().Entry();CSmsHeader& iHeader = iSmsMtm->SmsHeader();
TPtrC from = iHeader.FromAddress();
entry.iDetails.Set(aDetails);
shows in sms editor in filed "To:", but field "From" doesn not exits.
So, question is why when create new sms in inbox and sets sender addresses, field "From" doesn not exist?
The code for create new sms i got from forum.nokia.com:
http://wiki.forum.nokia.com/index.php/Create_Local_SMS
You need to modify the PDU type. Since normally you send SMS-s, the SMS Mtm creates outgoing messages (Submit PDU). You can replace it manually.