×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    217

    [Recognizer] I need not launch app if it's running

    Hi,

    I have implemented a recognizer to map a mime type to my application. But when the application is already running, Symbian launch another instance of the application. I need that the application was launched when it is not running and it was notified when it is already running.
    Is it possible?

    Thank you in advance.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: [Recognizer] I need not launch app if it's running

    For notification you may consider using a intermediate exe file.

  3. #3
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    217

    Re: [Recognizer] I need not launch app if it's running

    Do you know where can I find an example of that?

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: [Recognizer] I need not launch app if it's running

    Quote Originally Posted by er_benji View Post
    Do you know where can I find an example of that?
    There are non you just have to create your own.

  5. #5
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: [Recognizer] I need not launch app if it's running

    What about making sure you have derived the Application class from CAknApplication, it should be enough to tell the system to only have one instance running.

    Exception being of course instances that are embedded into other applications.

  6. #6
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    217

    Re: [Recognizer] I need not launch app if it's running

    Quote Originally Posted by symbianyucca View Post
    What about making sure you have derived the Application class from CAknApplication, it should be enough to tell the system to only have one instance running.

    Exception being of course instances that are embedded into other applications.
    Yes, I do but when I open a file mapped to my application throw the Symbian message app, this one is launched embedded in that one.

  7. #7
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: [Recognizer] I need not launch app if it's running

    Embedded are run in the context of the application embedding them, and thus there is separate instances run, anyway what is the actual problem you get with this behaviour ?

  8. #8
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    217

    Re: [Recognizer] I need not launch app if it's running

    Quote Originally Posted by symbianyucca View Post
    Embedded are run in the context of the application embedding them, and thus there is separate instances run, anyway what is the actual problem you get with this behaviour ?
    My app runs services that are configured in a xml file. I want to be able to add new services throw xml files when these files are opened. So, I need the following:
    -If the app is not runnig, I should change its config file to add the new service.
    -If the app is running, I should add to the heap object containing the services this new service just imported.
    So, if I could detect whether the app is already running or not when it is launched embedded, I could change the config file or pass a message to the standalone instance already running. I have just try to do that but in both cases I detect my application running even if the only instance is that one embedded.

  9. #9
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    217

    Re: [Recognizer] I need not launch app if it's running

    Hi,

    If I check if my app is running in the method CMyAppDocument::ConstructL(), I can detect this issue, so I think that with this information I can do what I want.

    Thank you very much.

  10. #10
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    217

    Re: [Recognizer] I need not launch app if it's running

    Quote Originally Posted by symbianyucca View Post
    Embedded are run in the context of the application embedding them, and thus there is separate instances run, anyway what is the actual problem you get with this behaviour ?
    Yucca, do you know if it is possible to find out in the own launched app whether it is running embedded in another app or running "standalone"

  11. #11
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: [Recognizer] I need not launch app if it's running

    There is Two pointers that you get with Embedded application, both from CCoeAppUi class:
    - CEikAppUi * iContainerAppUi;
    - MApaEmbeddedDocObserver * iDoorObserver;

    And remember that you get pointer to appui with environment variable. The nice thing actually is that if you would know the implementation of the embedding application, you could actually cast the Appui pointer to that class type, and call any public function from it..

Similar Threads

  1. Replies: 0
    Last Post: 2006-06-04, 14:23
  2. is it possible to launch a local Java app from a browser?
    By stevo999999 in forum Mobile Java General
    Replies: 7
    Last Post: 2006-03-23, 23:14
  3. Cannot launch app from emulator s60 3rd ed
    By dbagnol in forum Symbian
    Replies: 3
    Last Post: 2006-03-21, 16:26
  4. Receiving SMS while app is running?
    By putek20 in forum Symbian
    Replies: 3
    Last Post: 2004-03-08, 17:59
  5. java app on 9210 not running
    By nitinkumar in forum Mobile Java General
    Replies: 0
    Last Post: 2002-05-30, 11:21

Posting Permissions

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