×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Regular Contributor
    Join Date
    May 2010
    Posts
    413

    Running application in back ground

    Hi,
    Im a new bee to symbian, Can anyone tell me how to run over application in back ground i have no idea about it and how to do it can anyone explain me how to do this??????

    Thanks for any replies...

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: Running application in back ground

    Quote Originally Posted by kathir.s View Post
    Hi,
    Im a new bee to symbian, Can anyone tell me how to run over application in back ground i have no idea about it and how to do it can anyone explain me how to do this??????

    Thanks for any replies...
    Just see this discussion how to create the back ground application in using Symbian.
    http://discussion.forum.nokia.com/fo...lication/page2

    Cheers,

  3. #3
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: Running application in back ground

    Quote Originally Posted by kathir.s View Post
    Hi,
    Im a new bee to symbian, Can anyone tell me how to run over application in back ground i have no idea about it and how to do it can anyone explain me how to do this??????

    Thanks for any replies...
    Refer to this link -- for moving your application from foreground to background -- http://www.newlc.com/en/Moving-an-application-to.html
    Thanks,
    Ekta

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Running application in back ground

    hello kathir.s

    As you yourself told you are very new to symbian c++, i will advice you to make a habit of searching first at the forum nokia wiki , which really contains some good resources.

    For this time check out this link http://wiki.forum.nokia.com/index.ph..._to_background

    Regards,

  5. #5
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: Running application in back ground

    Quote Originally Posted by kathir.s View Post
    Hi,
    Im a new bee to symbian, Can anyone tell me how to run over application in back ground i have no idea about it and how to do it can anyone explain me how to do this??????
    Hi Kathir,

    You can make EXE(Non GUI) application which is running in background... instead other guys is suggested you send application in background or foreground by TApaTask or APPUI functions.

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Running application in back ground

    Hi kathir.s,

    as other said you can put the GUI application immediately during its startup (or anytime later) to background. You can make also EXE daemon (usually the daemon do not have own GUI), which will run silently in the background - see "Client-Server Framework". You can also hide the application from being visible to any user in e.g. list of installed applications, but this is allowed only in very special cases and will need so called TCB capability.

    BR
    STeN

  7. #7
    Regular Contributor
    Join Date
    May 2010
    Posts
    413

    Re: Running application in back ground

    Hi everyone thanks for ur replies, actually i go throughed the llinks given before but i couldn't make it,

    ill explain my application,

    i want to read the sms in the mobile using my application. and convert it to the xml format ., and i want send this xml to the server . and when a new sms arrives or in particular interval the sms should be updated to the server. all these operations should be run in the background, IF SMS needs to be sent read the SMS from the server and send SMS from the application.

    need to run this application in background can u give me a clear brief explanation about this....

    ...............Thanks for any replies........

  8. #8
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,347

    Re: Running application in back ground

    Create Basic console application(EXE) from Carbide.c++ new project wizard or implement client-server architecture.
    Nokia Developer Wiki Moderation team

  9. #9
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: Running application in back ground

    You very clear about your requirements. Just search with those strings in wiki and you will get all the required code snippets. You might have to just put them all together.

  10. #10
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Running application in back ground

    Hi kathir.s,

    "Client-Server framework" is the right choice for you. If you have never done it, then you fill find it difficult at the beginning, but using it you will get all you need for your solution. I recommend you looking on symbian.org, where this topic is very well documented and I also recommend you book from Jo Stichbury named Explaining Symbain OS.

    Link: http://developer.symbian.org/wiki/in...ian_C%2B%2B%29


    Good Luck
    STeN

  11. #11
    Regular Contributor
    Join Date
    May 2010
    Posts
    413

    Re: Running application in back ground

    Hi Sten,
    Actually i got the followin code from wiki,

    void CMyAppUi::BringToForeground()
    {
    // Construct en empty TApaTask object
    // giving it a reference to the Window Server session
    TApaTask task(iEikonEnv->WsSession( ));

    // Initialise the object with the window group id of
    // our application (so that it represent our app)
    task.SetWgId(CEikonEnv::Static()->RootWin().Identifier());

    // Request window server to bring our application
    // to foreground
    task.BringToForeground();
    }


    // Bring the application "theApp" to background
    TApaTaskList tasklist(iCoeEnv->WsSession());
    TApaTask task(tasklist.FindApp(_L("theApp")));
    task.SendToBackground(); // or BringToForeground()

    should we use this method directly in our class file, if so from where should i call this method...
    can u help me... how to use this method??


    .............Thanks for any replies...............

  12. #12
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,347

    Re: Running application in back ground

    Call it as a last line in your ConstructL of CMyAppUi.
    Nokia Developer Wiki Moderation team

  13. #13
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Running application in back ground

    This is not what stenlik suggested to read client-server architecture. You must need to understand many things before implementing your requirement.
    1)Client-Server framework to communicate with exe.
    2)How to read SMS.
    3)How to send file (xml )using HTTP.

    Search wiki to know more about all these topics.

  14. #14
    Regular Contributor
    Join Date
    May 2010
    Posts
    413

    Re: Running application in back ground

    Hi savaj acctually i have done all u said, now my application should run in background...this is wat my problem...i need to know how to do it ...

    Thanks,
    kathir

  15. #15
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: Running application in back ground

    You can make use of TApaTask SendToBackground() function to put your GUI application in to the background and run it. Also please go through the wiki once again, if you had read it properly you would not have come up with this questions.

Similar Threads

  1. Replies: 5
    Last Post: 2009-09-12, 15:08
  2. Replies: 3
    Last Post: 2009-01-29, 14:39
  3. Exit on back key when app is in back ground
    By Anurag Bansal in forum Symbian
    Replies: 8
    Last Post: 2008-09-18, 10:29
  4. Querry about app running in back ground
    By yajuvendra in forum Symbian
    Replies: 0
    Last Post: 2006-04-25, 09:37
  5. Back ground running application
    By coxcom in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-04-18, 09:21

Posting Permissions

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