×

Discussion Board

Results 1 to 15 of 15
  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    21

    Running application as service

    Hi All,
    I want to run a native application on Nokia E62 as a service.
    The user should be able to 'launch' and 'Stop' the application.
    Once the application is launched it should run in background and listen to events like 'End of call event'.
    The user should be able to do other things on the device while this application is running.

    How this can be achieved?
    Can anybody help me on this?

    Thanks.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Running application as service

    Quote Originally Posted by araja View Post
    Hi All,
    I want to run a native application on Nokia E62 as a service.
    The user should be able to 'launch' and 'Stop' the application.
    Once the application is launched it should run in background and listen to events like 'End of call event'.
    The user should be able to do other things on the device while this application is running.

    How this can be achieved?
    Can anybody help me on this?

    Thanks.
    you can use a EXE / Console Application to achieve the same.

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Running application as service

    I would go with client/server with this case. Just take any client/server example, remove the exiting when session count hits zero, and instead implement a command that will tell the server when to exit.

    Then you can start & stop the server using the Client implementing the UI part rather easily.

    yucca

  4. #4
    Registered User
    Join Date
    Oct 2007
    Posts
    21

    Re: Running application as service

    Thanks Sukumar for your reply.
    Can you please tell me where will I get a sample or some help about writing and EXE/ Console application?

    Thanks again.

  5. #5
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Running application as service

    If you use a IDE you can make a Basic helloWorld Console application as a Starting point.

  6. #6
    Registered User
    Join Date
    Oct 2007
    Posts
    21

    Re: Running application as service

    Thanks.
    I am using carbide.c++ IDE.
    I imported the basic helloWorld application from the sdk in carbide.
    Built it and tried to run it but in the emulator I am not able to see anything or even not on the console.

  7. #7
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Running application as service

    Quote Originally Posted by araja View Post
    Thanks.
    I am using carbide.c++ IDE.
    I imported the basic helloWorld application from the sdk in carbide.
    Built it and tried to run it but in the emulator I am not able to see anything or even not on the console.
    Console applications can't be seen on Emulator or Device Menu you have to use FExplorer / any other application to run it.

  8. #8
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Running application as service

    Quote Originally Posted by skumar_rao View Post
    Console applications can't be seen on Emulator or Device Menu you have to use FExplorer / any other application to run it.
    E62 is 3rd edition device, thus you would need file manager that has AllFiles to be able to do this at the device..

    yucca

  9. #9
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Running application as service

    yes Yukka is true.
    For only testing try putting the exe file in C:/ additional to c:/sys/bin and try running exe from c:/

  10. #10
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Running application as service

    I remeber platform security docs saying that you can run only from the \sys\bin\, anyway, you'll get icon also for console apps by defining a registration resource for it. Tried it once and its works just ok.

    yucca

  11. #11
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Running application as service

    what yucca is saying is true but i have followed http://newlc.com/Running-EXE-from-a-file-explorer.html this link and it works for me.

  12. #12
    Registered User
    Join Date
    Oct 2007
    Posts
    21

    Re: Running application as service

    I want to test this application on emulator as I don't have the device.
    Is it possible to test it on an emulator?

    Thanks.

  13. #13
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Running application as service

    I donot think you can run a Console app on Emulator.

  14. #14
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: Running application as service

    Quote Originally Posted by skumar_rao View Post
    I donot think you can run a Console app on Emulator.
    However it is possible, just create a registration file for your project. For example http://discussion.forum.nokia.com/fo...t=registration or http://discussion.forum.nokia.com/fo...hlight=minimal

  15. #15
    Registered User
    Join Date
    Feb 2006
    Location
    Brazil
    Posts
    523

    Re: Running application as service

    Quote Originally Posted by skumar_rao View Post
    ...For only testing try putting the exe file in C:/ additional to c:/sys/bin and try running exe from c:/
    That really works.
    I remember having found it out by myself, thanks to the famous bug in default "File Manager", that allowed (it's in the past cause, sadly, in newer devices/firmwares, the bug was fixed) you to access all folders and files of Sys and Private folders of memory card.

    Then i've copied an EXE to memory card's root, and could launch it, using SysExplorer (since other file managers like Y-browser couldn't launch the EXE).

    Of course, the copied EXE works just as a shortcut to the real executable: when you click on it, the EXE that will be run is actually that one located at \sys\bin\

    An alternate way i think also works to run independent EXEs is using Active File.It has a "Run" feature in task manager that can locate and run EXEs installed in the device.
    But i'm not sure whether it'll work for an independent EXE.
    It works for normal applications.


    best regards
    Http_user_agent:
    NokiaN80-1/3.0 (4.0707.0.7)
    Series60/3.0
    Profile/MIDP-2.0
    Configuration/CLDC-1.1

Similar Threads

  1. Replies: 0
    Last Post: 2004-10-26, 15:02
  2. Test if Application is running
    By valentin_da_itiv in forum Symbian
    Replies: 1
    Last Post: 2004-02-09, 11:17
  3. Auto start application / service
    By jimdeal in forum Symbian
    Replies: 2
    Last Post: 2003-02-21, 02:26
  4. filtering application as a recipient?
    By aidj in forum General Messaging
    Replies: 1
    Last Post: 2002-11-12, 06:26

Posting Permissions

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