×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    101

    Problem with autostart in background

    Hi,

    I managed to make my application start in the background when I call it manually and I also managed to make it autostart. But when both comes together there are some problems.

    Currently I have the problem that the app comes to the foreground when it gets autostarted. But when I close it and start it manually again it stays in the background as supposed. How can this be?

    These are the lines of code I use to make my app stay in the background:
    Code:
        TApaTask myTask(iEikonEnv->WsSession());
        myTask.SetWgId(CEikonEnv::Static()->RootWin().Identifier());
        myTask.SendToBackground();

    Besides, with some earlier builts this problem didn't occur and the app behaved as I wanted it to. Only since I express signed it, the problem occurs. Doesn't express sign allow applications to start in the background?


    Thanks
    Simon

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

    Re: Problem with autostart in background

    As the Appui's construct function actually makes the application to gain focus on the start up, it should come to the foreground for short while every time it is constructed. Best way to avoid this feature is to have the background process made as non-gui application.

    anyway, I'm rather sure its about race condition, thus you would need to debug and find correct timer values which with you could make your application go back to the background when it is launched.

  3. #3
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    101

    Re: Problem with autostart in background

    Do you really think it's because of a race condition? As I really NEVER faced this problem during development when I open signed the application myself.
    The first time it occured was when I express signed it. When I install an open signed version again the problem is gone.

    Btw, how do I implement the timer you mentioned?
    Last edited by schnesim; 2008-07-28 at 10:04.

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

    Re: Problem with autostart in background

    I can not think any reason why the symbian signed would cause the problem, so I would try debugging it and finding the reason. There should be no difference on using the developer certificate & symbian signing.

    For timers, you should find nice implementations from the Wiki.

Similar Threads

  1. Problem with background while switching view.
    By Dattanand in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-04-13, 15:55
  2. Problem in autostart and Network setting in signed midlet.
    By guptanavneet2006 in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2008-03-27, 04:57
  3. Midlet autostart on a tag nearby problem
    By Ltsolo in forum Near Field Communication
    Replies: 0
    Last Post: 2007-08-31, 05:11
  4. Autostart Problem
    By Utk in forum Symbian
    Replies: 5
    Last Post: 2007-04-20, 14:00
  5. Problem with background for CAknSingleGraphicStyleListBox
    By hforsstr in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-06-17, 13:46

Posting Permissions

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