hiding second application

Login to reply to this topic.
Wed, 2008-02-13 16:50
Joined: 2007-09-27
Forum posts: 1

hi,

i start a flash file. from this application i want to launch my own symbian c++ socket server to comunicate with it. the lauch from flash with fscommand("Launch", "Server.exe"); works good. but the server starts in forground over my flash application.

i have tried launch = KAppLaunchInBackground; which works well if i only start the server, but not if it called from the flash app.

the second i tried was

void CServerAppUi::HandleForegroundEventL(TBool aForeground)
        {
        CAknAppUi::HandleForegroundEventL(aForeground);

         TApaTaskList tasklist(iCoeEnv->WsSession());
         TApaTask     task(tasklist.FindApp(_L("Server")));
         task.SendToBackground();  // or BringToForeground()
        }

but nothing happens. the server still tarting in foreground.

has somebody tried the same thing, and is there a way to get my flash app back to the foreground.


Thu, 2008-02-14 15:47
Joined: 2007-12-19
Forum posts: 49
Re: hiding second application

Are you sure that this app name is _L("Server") ?? And also you must remember that there may be more than one program with the same name running on device so FindApp(_L("Server") method may not always return this task which you want.

  • Login to reply to this topic.