×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    190

    Why is my app is launched multiple times?

    When I assign my application to start by right softkey (Nokia 6630 allows it), it starts
    multiple instances every time.
    But when my app is started by clicking its icon, existing instance is put to
    foreground (if exists).

    I don't know if my app is missing something, or there's bug in phone?!?
    Please help...

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166
    never noticed this, anyway was reading from some papers that in Series 60, the applications class should be derived from CAknApplication instead of CEikApplication, simply because CAknApplication implements functionality that should prevent multiple instances of the applications to be lauched (excluding embedding)

    So check if deriving the applications class from CAknApplication would do any difference.

    yucca

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    190
    I tried before to inherit from CAknApplication.
    1) it didn't help
    2) HelloWorld example inherits CEikApplication
    3) it happens only when assigning to shortcut key
    4) no other app do this, only mine (including HelloWorld if I compile it)

    So I wonder if I forgot to export some UID?

  4. #4
    Registered User
    Join Date
    Sep 2003
    Location
    Fort Collins Colorado
    Posts
    31

    Same problem

    I'm having this problem too, did you find a solution?

  5. #5
    Registered User
    Join Date
    Sep 2003
    Location
    Fort Collins Colorado
    Posts
    31

    Problem solved

    I switched over to using CAknApplication (and document etc.) as mentione in this thread and it solved the multiple instance launching from a softkey problem.

  6. #6
    Registered User
    Join Date
    Jul 2003
    Posts
    190
    Yes, switching to CAknApplication worked! Thanks!

  7. #7
    Registered User
    Join Date
    Mar 2003
    Posts
    8

    Re: Why is my app is launched multiple times?

    I am sorry to bring back this post, but I have a similar problem using S60 3rd edition.
    If I launch my application 'normally' and I go back to s60 menu then for instance try to open a file linked to my application by MIME types, then the framework creates another instance of my application.But if I reselect my application directly then the first instance is brought back.

    In reference of the previous posts, I precise that my app class derives from CaknApplication and I am using CAknDocument class.

    What am I doing wrong?
    Can someone help me?

    Thanks,
    David.

Posting Permissions

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