Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User aisaxi's Avatar
    Join Date
    Jan 2007
    Posts
    27
    Good day,

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

    Thank's

  2. #2
    Registered User kis_spn's Avatar
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128
    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 aisaxi's Avatar
    Join Date
    Jan 2007
    Posts
    27
    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 kis_spn's Avatar
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128
    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 aisaxi's Avatar
    Join Date
    Jan 2007
    Posts
    27
    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 kis_spn's Avatar
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128
    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 aisaxi's Avatar
    Join Date
    Jan 2007
    Posts
    27
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    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 aisaxi's Avatar
    Join Date
    Jan 2007
    Posts
    27
    Can you show example how to relace it ?
    Thank's

  10. #10
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683

  11. #11
    Registered User aisaxi's Avatar
    Join Date
    Jan 2007
    Posts
    27
    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
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved