×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Chengdu China
    Posts
    169

    Launch SMSEditor.exe

    Hi,
    My code is:
    RProcess process;
    TUidType uidtype(KNullUid);
    TInt eeee = process.Create(_L("SmsEditor"), _L("teststring"), EOwnerProcess);
    process.Resume();
    process.Close();
    return;

    the goal is to start the SMSEditor and pass the message needs to be sent to him
    but when I excute the code, it crashes. I think it is because of that the format of the text (the 2nd para of Create) is incorrect. Can anybody tell me what is the right format of it? Thank you very much!
    The dream is to become one machine, or let one machine become me

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: Launch SMSEditor.exe

    If you download "S60 Platform: Application Views" from FN main site (www.forum.nokia.com, Documentation / Symbian C++ on the left, UI), you will get an idea how to launch the SMS editor with pre-defined content (ironically it is not done with views, but the example is there).

  3. #3
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Chengdu China
    Posts
    169

    Re: Launch SMSEditor.exe

    thx
    the SmsEditor is started by
    const TUid KMessagingUid = { 0x100058C5 }; // Application Uid
    const TUid KInboxViewUid = { 1 }; // View Uid of the external application
    AppUi()->ActivateViewL(TVwsViewId(KMessagingUid, KInboxViewUid));

    but my problem is I want to start the SmsEditor AND pass some data to it, e.g. the receiver` s phone number, and / or the message content
    The dream is to become one machine, or let one machine become me

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,335

    Re: Launch SMSEditor.exe

    Use RSendAs and RSendAsMessage API for this purpose. You can set recipient number through AddRecipientL and message content through SetBodyTextL.

    Finally call LaunchEditorAndCloseL to open message editor. It will contain your set phone number and message body.
    Nokia Developer Wiki Moderation team

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: Launch SMSEditor.exe

    Are you sure about that you have checked that document. If I open it, 3.3.2. says
    Quote Originally Posted by S60_Platform_Utilizing_External_Application_Views_v2_1_en.pdf
    It is not possible to open a window to write a message using ActivateViewL. However, it is possible to accomplish this by using the CSendAppUi class. This is a frequently asked question, which is why it is presented here.
    [and a code snippet is "here"]

  6. #6
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Chengdu China
    Posts
    169

    Re: Launch SMSEditor.exe

    Hi, kiran10182,
    It works, with a warning of 'Memory Full' in emulator, though

    Hi, wizard,
    Sorry, I didnt check the pdf, I just took a look at the code
    I use 3.0 SDK. there is no class of CSendAppUi, however there is CSendUi, everything works fine when I tried the example in the pdf
    The dream is to become one machine, or let one machine become me

  7. #7
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Chengdu China
    Posts
    169

    Re: Launch SMSEditor.exe

    Thank you both, it` s very convenient to use the already-written SmsEditor to send message, instead of writing our own
    The dream is to become one machine, or let one machine become me

Similar Threads

  1. Launch Application
    By kkrish in forum Symbian
    Replies: 3
    Last Post: 2008-12-09, 08:43
  2. How to Launch another application
    By hmleung in forum Symbian
    Replies: 12
    Last Post: 2008-03-12, 14:07
  3. How to use a hotkey to launch my application?
    By nochess in forum Symbian
    Replies: 3
    Last Post: 2008-01-25, 08:36
  4. Launch J2ME App
    By sjb343 in forum Symbian
    Replies: 1
    Last Post: 2007-04-11, 08:24
  5. RProcess::Create doesnt not Launch in Target !!!
    By dhanyaknair in forum Symbian
    Replies: 0
    Last Post: 2004-07-21, 07:15

Posting Permissions

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