Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User seventen's Avatar
    Join Date
    Sep 2007
    Posts
    2
    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 Jii5Hoo's Avatar
    Join Date
    Jan 2008
    Posts
    56
    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 seventen's Avatar
    Join Date
    Sep 2007
    Posts
    2
    thank you for the help, this works great!!!

  4. #4
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved