×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Opening Messaging application on specific view/account

    Hello,
    i've already posted a similar question in the Network group, i'm trying here too reformulating the question:
    is it possible to programmatically open the Messaging application on the view of a specific account/mailbox?
    I know how to find UID of Messaging app and launch it, but i suspect is not possible to open the view of a specific account/mailbox.
    Can you confirm on this or alternatively put me in the right direction?
    thank you in advance
    pg

  2. #2
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: Opening Messaging application on specific view/account

    hi,

    use this link
    http://www.newlc.com/How-to-Display-the-Uid-of.html

    get the messaging app uid and invoke it with ActivateLocalViewL

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  3. #3
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: Opening Messaging application on specific view/account

    Hello Mateen,
    thank you for your reply.
    But in fact i already know how to retrieve app uid, what i'm missing is the aViewUid, the parameter of the ActivateLocalViewL() function...
    since every user can add/create a different number of mailbox, i suspect that the messaging application dinamically creates views and their uids... ? so the question is, if using ActivateLocalViewL(), how can i retrieve such uid(s)? or is there another mechanism?
    Of course i could rewrite an email client with messaging API, but the Messaging app is so nice for my job (and already done!)... :-)
    thank you
    pg

  4. #4
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: Opening Messaging application on specific view/account

    I've found the solution, the trick is to use the ActivateViewL with the serviceId, something like:

    TMsvId imapServiceId;
    imapServiceId = iImapAccount.iImapService;

    TUid serviceUid = TUid::Uid(imapServiceId);

    const TUid KMessagingUid = { 0x100058C5 }; // Application Uid
    const TUid KInboxViewUid = { 2 }; // View Uid of the external app

    // Get the application UI from CEikonEnv
    CImapProfileAppAppUi* appui = (static_cast<CImapProfileAppAppUi*>(CEikonEnv::Static()->AppUi()));
    appui->ActivateViewL(TVwsViewId(KMessagingUid,KInboxViewUid),serviceUid,KNullDesC8);

Similar Threads

  1. programmatically open native messaging application
    By pavarang in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2008-04-30, 23:23
  2. Is it possible to "extend" S60 messaging application?
    By mck182 in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2008-02-12, 08:55
  3. Application Not Opening
    By symbians60 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 5
    Last Post: 2007-02-28, 14:23
  4. Error in opening application
    By thngkl in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2007-01-18, 16:40
  5. Replies: 0
    Last Post: 2004-03-17, 10:57

Posting Permissions

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