×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2007
    Location
    Noida
    Posts
    152

    Question Run Application in background and hide from toolbar

    Hello everyone,

    1.>i want to create an app that should be installed in the phone, then as soon as the icon of that application is clicked it should completely go in the background and should continue running there.

    i am writing the following piece of code to achieve the same.
    Code:
    //hide application from Fast Swap Window
    
            CAknAppUi::HideApplicationFromFSW(ETrue);
    
    //find out the task and send it to background
    
    	TApaTask task(iEikonEnv->WsSession());
    	task.SetWgId(CEikonEnv::Static()->RootWin().Identifier());
    	task.SendToBackground();
    this code is working but as soon as the application is hidden in the back ground ,after a few seconds an error says that the App is closed.

    some help please.

    many thanks,
    Abhishek karmakar

    never- Never - NEVER -- !!! NEVER !!! GIVE UP

  2. #2
    Registered User
    Join Date
    Oct 2007
    Location
    Noida
    Posts
    152

    Question Re: Run Application in background and hide from toolbar

    I just tried out another solution for putting the application to the background .. i am doing this code in the AppUi's ConstructL()

    Code:
    	TApaTaskList tasklist(iEikonEnv->WsSession());
    	TApaTask mytask = tasklist.FindApp(KUidMyProApp);
    	mytask.SendToBackground();
    This also works but again stops the application and exits after a few seconds.
    Abhishek karmakar

    never- Never - NEVER -- !!! NEVER !!! GIVE UP

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    444

    Re: Run Application in background and hide from toolbar

    Hi Abhishek,

    It may be your application is crashing / panicing after some time. This is not related to problem with background.
    You should try to catch what is the panic and at where it comes.

    Regards,
    Kavit.

  4. #4
    Registered User
    Join Date
    Oct 2007
    Location
    Noida
    Posts
    152

    Re: Run Application in background and hide from toolbar

    Thank You Kavit,
    The error was somewhere else which was showing the panic and the application was exiting..

    Well its working now ..
    thanks again.
    Abhishek karmakar

    never- Never - NEVER -- !!! NEVER !!! GIVE UP

Similar Threads

  1. Replies: 9
    Last Post: 2008-08-08, 11:03
  2. How to run an app hidden in the background?
    By ozansafi in forum Symbian
    Replies: 11
    Last Post: 2008-04-19, 05:02
  3. Hide running application in FP1
    By xlazom00 in forum Symbian User Interface
    Replies: 9
    Last Post: 2008-03-26, 08:43
  4. Agent appplication with should run in background
    By alonish in forum Mobile Java General
    Replies: 8
    Last Post: 2007-01-08, 14:50
  5. Background application
    By ajsanchez in forum Symbian
    Replies: 7
    Last Post: 2004-07-02, 09:26

Posting Permissions

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