×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    24

    Background application

    I am new to Symbian OS.

    I need create a application for Symbian 8.0a 2rd.

    How create a new application (in VC++) that should be running in the background.
    What is the tools I need use?

    Thanks.
    Lian.

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

    Smile Re: Background application

    Hello Lian,

    As you want to develop a background application, an .exe type application would be more appropriate in yr case.

    You would find Application Wizard in tools in yr SDK installation.
    Start->Programs->Series 60 developer tools->.........->Tools->Application Wizard.

    You need to run that and select Symbian OS EXE wizard.
    By following further steps, it will generate skeleton for yr .exe.
    Then you need to code the behaviour you want for yr .exe.
    That's it.

    All the best.
    Regards.
    Kiran.

  3. #3
    Registered User
    Join Date
    Jun 2006
    Posts
    259

    Re: Background application

    Hi,

    Install VC++(VisualStudio), SymbianOS SDK 8.0.
    After installing,
    Open VC++ IDE. Click on New in File Menu. Dialog box appears.
    Click on projects Tab, select series 60 icon on left hand and so on. Click
    finish. It will create a application for you. Run it.
    If you can't c series 60 icon, then copy these two files from
    C:\Symbian\7.0s\Series60_v20\Series60Tools\applicationwizard
    (avkonappwiz_v20 avkonappwiz_v20.awx)
    into
    C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Template
    Thats it.

    Application BackGround
    TApaTask task(iEikonEnv->WsSession());
    task.SetWgId(CEikonEnv::Static()->RootWin().Identifier());
    task.SendToBackground();
    Add this code in your application.

    Cheer's
    Last edited by marvik_34; 2006-10-03 at 09:20.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    24

    Re: Background application

    Thanks you for explanation.

    I've created an exe application, create the .sis file and installed it on handset 6680.
    How can I run the application on handset and emulator too?

    Thanks,
    Lian

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

    Smile Re: Background application

    Hello Lian,

    Great job!!!
    Now do one thing:
    From the following link, you may find out FExplorer.
    http://www.gosymbian.com/dhscr/downl...name=FExplorer

    Install it on yr Phone. Once you get it installed on yr Phone, find out the path of yr .exe. Then u can easily open yr exe from the phone.

    Another method of calling an .exe as soon as installation finishes,
    just add FR,RI(File Run, Run during installtion). More in following:
    http://newlc.com/Start-automatically...plication.html

    And as far as running an .exe on emulator, you don't need to open emulator for that. Just open yr .exe from the built location. It will start in the emulator.

    Regards.
    Kiran.

  6. #6
    Registered User
    Join Date
    Sep 2006
    Posts
    24

    Re: Background application

    Hello Kiran,

    Thanks for yr. help.
    My first exe app running!!!

    I need, that the application will run Automatically after handset start up.


    Thanks,
    Lian
    Last edited by lian2703; 2006-10-04 at 13:07.

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

    Smile Re: Background application

    Hello Lian,

    You can of course autostart yr application as soon as the phone switches on.

    Followings are few approaches:
    1)Autostart By Mika Raento:
    http://www.cs.helsinki.fi/u/mraento/...autostart.html
    Find out and download:
    * Recognizer/autostart
    * Watchdog + application start

    http://discussion.forum.nokia.com/fo...ad.php?t=87254
    http://discussion.forum.nokia.com/fo...ad.php?t=81873

    2) http://www.newlc.com/EzBoot.html

    3) http://developer.symbian.com/main/to.../index.jsp#sob
    You shall find Start-On-Boot API in above link.

    Regards.
    Kiran.
    Last edited by kiran10182; 2006-11-22 at 06:55.

  8. #8
    Regular Contributor
    Join Date
    Mar 2006
    Location
    India
    Posts
    138

    Question View process status

    Hi,
    Plz let me know..how can i view running processes (task) in the Series 60 3rd ed. Symbian 9.1 emulator..?
    thanks
    Anand

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

    Smile Re: View process status

    Hello Anand,
    Quote Originally Posted by anand_zain76
    Hi,
    Plz let me know..how can i view running processes (task) in the Series 60 3rd ed. Symbian 9.1 emulator..?
    thanks
    Anand
    Press and Hold Menu Key on emulator.

    Regards.
    Kiran.

  10. #10
    Regular Contributor
    Join Date
    Mar 2006
    Location
    India
    Posts
    138

    Re: Background application

    HI Could u plz tell me in detail..

    I want to know which prcesses are running.. like we can see in the task manager in the Windows OS.

    Regards
    Anand Jain

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

    Smile Re: Background application

    Hello Anand,

    If you are talking about the processes which are running(by your code), you can see them by pressing and Holding Menu key on the Emulator.

    For ex: You have created one console based exe, and when you start it by clicking on it from ...UDEB folder, it will be listed into runing tasks in the Emulator. You just need to run it by selecting it from task list.

    This is all what i meant and what i use more often.

    Regards.
    Kiran.

  12. #12
    Regular Contributor
    Join Date
    Mar 2006
    Location
    India
    Posts
    138

    Exclamation Re: Background application

    Thanks Kiran,
    I got that.

    But I think in this way we can see only the running applications. But what about the System servers and application server, will those be visible there?

    So I am doubtful in this way we can watch all the processes running in the OS.

    I m working on Symbin 9.1 S60 3rd ed.

    Regards
    Anand

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

    Smile Re: Background application

    Hello Anand,

    Yes, We can see our own running processes by this way.
    I have never come across such an issue as you described.

    You can look into EPOCWIND.OUT file. It lists down some entries points on debugging. Not sure about running processes.

    I'll surely intimate you when i come across to it.
    Meanwhile i hope some experts or experienced developers may answer it.


    All the best.
    Regards.
    Kiran.

  14. #14
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Background application

    hi...

    i know there is a simpler way of doing it..by adding lines like :-

    // Auto Start Application Resource
    START RESOURCE ..\data\[AppID].rss
    HEADER
    TARGETPATH \resource\apps
    END

    in the mmp file

    and your rss file looks like this :-

    #include <startupitem.rh>

    RESOURCE STARTUP_ITEM_INFO YourAppName
    {
    executable_name = "!:\\sys\\bin\\YourAppName.exe"; // Full path of the application as in pkg file
    recovery = EStartupItemExPolicyNone;
    }

    and also in the corresponding.resources file u specify something like this :-

    <rsc sourcefile = "[YourAppName].rss" targetpath = "Z\resource\apps" targetfile = "[YourAppName].RSC"
    header = "true" sourcepath = "..\data">
    <language id = "SC"/>
    </rsc>

    ---------------
    All of this works fine in CodeWarrior..but how do i achieve the same with Carbide..because it doesnt seem to have an mmp file and also it doesnt seem to have the *.resources file...?

    Cheers
    mayank

  15. #15
    Regular Contributor
    Join Date
    Jan 2009
    Posts
    264

    Re: Background application

    Quote Originally Posted by kiran10182 View Post
    Hello Lian,

    You can of course autostart yr application as soon as the phone switches on.

    Followings are few approaches:
    1)Autostart By Mika Raento:
    http://www.cs.helsinki.fi/u/mraento/...autostart.html
    Find out and download:
    * Recognizer/autostart
    * Watchdog + application start

    http://discussion.forum.nokia.com/fo...ad.php?t=87254
    http://discussion.forum.nokia.com/fo...ad.php?t=81873

    2) http://www.newlc.com/EzBoot.html

    3) http://developer.symbian.com/main/to.../index.jsp#sob
    You shall find Start-On-Boot API in above link.

    Regards.
    Kiran.
    These Links donot work please update them....

Similar Threads

  1. Handle menu with application in background
    By jrgm223 in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-05-31, 10:40
  2. Background application
    By 1xuname1x in forum Mobile Java General
    Replies: 2
    Last Post: 2006-05-25, 18:18
  3. Application in background problem
    By kiranpuranik in forum Symbian
    Replies: 2
    Last Post: 2006-04-20, 07:56
  4. knowing-if an application is running in background
    By sunny_singh in forum Symbian
    Replies: 3
    Last Post: 2005-11-21, 12:01
  5. Running application in the background
    By artemg in forum Mobile Java General
    Replies: 0
    Last Post: 2004-01-05, 12:54

Posting Permissions

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