×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    27

    Create SMS without tone

    Good day,

    How to create SMS in Inbox without alert tone if device is not in silent mode ?

    Thank's

  2. #2
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: Create SMS without tone

    Quote Originally Posted by aisaxi View Post
    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!

  3. #3
    Registered User
    Join Date
    Jan 2007
    Posts
    27

    Re: Create SMS without tone

    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 ?

  4. #4
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: Create SMS without tone

    Quote Originally Posted by aisaxi View Post
    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 aisaxi,

    I think, There is no such a way which is created new unread sms without any alert. In MTM, Whenever you create a new Unread SMS it'll give a beep.

    Hopes, Someone other help you.

  5. #5
    Registered User
    Join Date
    Jan 2007
    Posts
    27

    Re: Create SMS without tone

    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 !

  6. #6
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: Create SMS without tone

    Quote Originally Posted by aisaxi View Post
    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 !
    Hi aisaxi,

    Not mine intention to demotivate you. Ofcourse you can try another way....If you get anything pls share with us.

  7. #7
    Registered User
    Join Date
    Jan 2007
    Posts
    27

    Re: Create SMS without tone

    Another one question:
    When creates new SMS in Inbox, exists next code

    CSmsHeader& iHeader = iSmsMtm->SmsHeader();
    iHeader.SetFromAddressL(aAddress);
    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 by

    CSmsHeader& iHeader = iSmsMtm->SmsHeader();
    TPtrC from = iHeader.FromAddress();
    TMsvEntry entry = iSmsMtm->Entry().Entry();
    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

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,672

    Re: Create SMS without tone

    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.

  9. #9
    Registered User
    Join Date
    Jan 2007
    Posts
    27

    Re: Create SMS without tone

    Can you show example how to relace it ?
    Thank's

  10. #10
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,672

  11. #11
    Registered User
    Join Date
    Jan 2007
    Posts
    27

    Re: Create SMS without tone

    Ok, Thank you

Similar Threads

  1. Replies: 3
    Last Post: 2010-12-27, 10:47
  2. Can I change sms alert tone programatically?
    By ash_21 in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2007-08-23, 05:54
  3. Create simple SMS application with J2ME
    By Psyve in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 2
    Last Post: 2007-07-03, 08:39
  4. how to create my own SMS inbox?
    By thaimin in forum General Messaging
    Replies: 1
    Last Post: 2007-06-15, 17:49
  5. Error sending SMS
    By jorge_c in forum Multimodecards
    Replies: 0
    Last Post: 2003-10-07, 11:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×