×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Feb 2004
    Posts
    130

    set apps to be run background manually

    hi there,
    i have a problem.

    when i start my apps, it will requires login. after login process, i want to set my apps to be run on background (i can close the apps and do something else, but it still running). i want to do that manually (choose an option to run background)

    when my apps is closed, can this dialog appear?

    TBool answer;
    answer = iEikonEnv->QueryWinL(_L("You Have Message(s)"),_L("Do You Want to Read?"));

    if(answer)
    {
    //do the process
    }

    then if i answered "yes"... my apps opens automatically and do the rest.

    is there anybody has ever try this? can anybody help me...

    mayb the point of my question is...
    1. can i close my apps manually, but it still running?
    2. can iEikonEnv->QueryWinL() appear anywhere on the phone?
    3. how to automatically open my apps back?

    thanks for the help, really need it.

    Thanks in Advance,
    Rx-lee

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143
    if you close the app, it will not be running anymore... anyway you can put it into the background, see this for more info:
    http://discussion.forum.nokia.com/fo...%2ATApaTask%2A

    Also see note example of how to use notes in Series 60.

    yucca

  3. #3
    Regular Contributor
    Join Date
    Feb 2004
    Posts
    130
    hi symbianyucca,

    i wonder what is the different between

    To hide the application you can send it to the background like this:
    TApaTask task(iEikonEnv->WsSession());
    task.SetWgId(CEikonEnv::Static()->RootWin().Identifier());
    task.SendToBackground();

    and

    If you also need to launch the application in the background so that the user doesn't see it all, you can use this code:
    CApaCommandLine *cmd = CApaCommandLine::NewL();
    CleanupStack::PushL(cmd);
    cmd->SetLibraryNameL(KApplicationFileName);
    cmd->SetCommandL(EApaCommandBackground);
    EikDll::StartAppL(*cmd);


    anyway.. thanks for ur help. it helps me a lot

    Rx-lee

Posting Permissions

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