×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    2

    Lightbulb hiding second application

    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
    Code:
    fscommand("Launch", "Server.exe");
    works good. but the server starts in forground over my flash application.

    i have tried
    Code:
    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
    Code:
    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.

  2. #2
    Regular Contributor
    Join Date
    Jan 2008
    Posts
    56

    Re: hiding second application

    Hi,

    that doesn't look good solution,
    how about if you send Flash Lite app to foreground instead?

    Call this function with UID of the Flash player/app:

    Code:
    static void BringFlashForeground( TUid aUid )
        {
            RWsSession wsSession;
            TInt err = wsSession.Connect();
            if( err != KErrNone )
            {
                return;
            }
    
            TApaTaskList taskList( wsSession );
            TApaTask flashtask = taskList.FindApp( aUid );
    
            if( flashtask.Exists() )
            {
                flashtask.BringToForeground();
            }
            wsSession.Close();
        }
    Cheers,
    Jukka

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    2

    Talking Re: hiding second application

    thank you for the help, this works great!!!

  4. #4
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    89

    Re: hiding second application

    BTW, did you know you could use KuneriLite to work with your own application? Maybe no need to write a socket server from scratch

    cheers,

    Ugur.-
    Follow me on Twitter [url]www.twitter.com/ugurkaner[/url]

    Create sexiest Symbian apps faster & easier [url]www.kunerilite.net[/url]
    Turn your Joomla! website into a mobile site instantly [url]www.mobilejoomla.com[/url]

Similar Threads

  1. application in background not running. Please help!
    By emadrazo in forum Symbian C++
    Replies: 0
    Last Post: 2007-11-27, 11:09
  2. 3250: Too many SMSs received crash the application
    By kewldeep in forum Mobile Java General
    Replies: 4
    Last Post: 2007-01-27, 00:00
  3. Sending SMS to Emulator through desktop application
    By iqbalaminkhan in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2006-12-22, 05:01
  4. Application without icon in application menu
    By iulian_moldovan in forum Symbian C++
    Replies: 3
    Last Post: 2006-12-14, 09:38
  5. Replies: 0
    Last Post: 2005-05-28, 10:20

Posting Permissions

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