Discussion Board

Results 1 to 11 of 11

Thread: Embed file

  1. #1
    Registered User budugu's Avatar
    Join Date
    Apr 2010
    Posts
    30
    when you open an a image file using CDocumentHandler->OpenFileEmbeddedL(...) and press exit in the image view the parent app exits, is there a way to redefine this behaviour? I want the exit button to behave in the same way as the back button and also I don't want to launch a separate application

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    have you implemented the MAknServerAppExitObserver ? you should be able to catch the exit there without exiting your own applciation: http://wiki.forum.nokia.com/index.ph...ocumentHandler

  3. #3
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Implement and pass MAknServerAppExitObserver to CDocumentHandler.

  4. #4
    Registered User budugu's Avatar
    Join Date
    Apr 2010
    Posts
    30
    if I don't call the base class implementation MAknServerAppExitObserver::HandleServerAppExit(aReason); in HandleServerAppExit() my application should not exit right? But it is exiting anyway

  5. #5
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    Are you now talking about the application that embeds another one ? or actually about the application that gets embedded ?

  6. #6
    Registered User budugu's Avatar
    Join Date
    Apr 2010
    Posts
    30
    I am talking about the application that embeds another one,

    my application is trying to embed image application and when i exit image application i get a callback to HandleServerAppExit() but my application also gets killed

  7. #7
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    You would never call HandleServerAppExit from the applciation that embeds another, the application getting embedded would call it to inform you that it is exiting.

  8. #8
    Registered User budugu's Avatar
    Join Date
    Apr 2010
    Posts
    30
    Infact I just installed your YBrowser and that is behaving in the same way. YBrowser gets killed when you close the image application, I don't want this to happen in my application

  9. #9
    Registered User budugu's Avatar
    Join Date
    Apr 2010
    Posts
    30
    Quote Originally Posted by symbianyucca View Post
    You would never call HandleServerAppExit from the applciation that embeds another, the application getting embedded would call it to inform you that it is exiting.
    So how do I prevent my application's exit?

  10. #10
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    Of course if user explicitly selects the Exit command from the Menu, you are supposed to exit. anyway, any well behaving embedded application, like the image application, actually shows the back in the right soft-key, that handles the going back.

    I'm not going to bother on checking the issue, but surely, you can check whether the exit command comes to your appui's command handler, and if it does, just handle it differently. and if the embedded application really wants to exit, then there is not much that you can do about it.

  11. #11
    Registered User budugu's Avatar
    Join Date
    Apr 2010
    Posts
    30
    HandleCommandL is getting the exit command, in fact the HandleServerAppExit's documentation says "This implementation provides Series 60 default behavior for handling of the EAknCmdExit exit code" so that solved it. Thank you.

Similar Threads

  1. Embed file explorer in application
    By digitalsol in forum Symbian User Interface
    Replies: 3
    Last Post: 2010-10-04, 09:19
  2. Replies: 1
    Last Post: 2010-08-30, 14:36
  3. Embed text file to a sis file
    By honour88 in forum Symbian C++
    Replies: 4
    Last Post: 2009-11-24, 16:32
  4. Product uses Open-C, But not allowed to embed in sis file, Is that fine for signing?
    By sovendana in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 3
    Last Post: 2007-09-14, 07:28
  5. embed color gif file in wml page cannot load
    By hsinyee in forum Browsing and Mark-ups
    Replies: 2
    Last Post: 2003-05-30, 03:35

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