×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    70

    how to run a program in e60 phone.

    Hi all,
    I have written a pkg file for Example\base\timers\periodic.
    and make a self-signed sis for e60 phone.

    after I installed the sis on the phone,
    I dont know how to lauch the executable program.

    any hints? thanks.

  2. #2
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    280

    Re: how to run a program in e60 phone.

    If you were able to successfully install it then
    go to the installed folder from main menu.
    There you will find the Timer Application.
    Just click on it and it will open your
    application.

    Regards.

  3. #3
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    70

    Re: how to run a program in e60 phone.

    I can not see the icon for Periodic in installed folder, instead I see the program in app.manager :
    Periodic
    (installed)

    all the keys are not enabled to run it, only key to list the details about periodic
    Details:
    Name:
    Periodic

    Version
    1.00(0)

    I see the difference between it and the example HellowWorldBasic which include some resource.

  4. #4
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    280

    Re: how to run a program in e60 phone.

    Oh..This is a console application.

    To make a console application visible on emulator/device create a basic *_reg.rss file like this:

    Code:
    #include < appinfo.rh >
    UID2 KUidAppRegistrationResourceFile
    UID3 0x???????? // you app's UID3 here 
    
    RESOURCE APP_REGISTRATION_INFO { app_file="project_exe_name_without_extension"; }
    This link will help you:
    http://discussion.forum.nokia.com/fo...d.php?t=102295

  5. #5
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    70

    Re: how to run a program in e60 phone.

    thanks,
    although the install procedure tells me the installation is ok, but I count not file the insttalled program: Periodic in all C: D: E: Z: driver. what's the problem?

    i also changed the destionation source from !:\system\bin\periodic.exe" to "C:\system\apps\periodic.exe"

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: how to run a program in e60 phone.

    Quote Originally Posted by baumannpan
    i also changed the destionation source from !:\system\bin\periodic.exe" to "C:\system\apps\periodic.exe"
    Both guesses are wrong. Use "!:\sys\bin\periodic.exe" (you can use C: too). However feel free to check the examples in the S60Ex folder (start with HelloWorldBasic), all of them comes with valid .pkg files.

  7. #7
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    70

    Re: how to run a program in e60 phone.

    how about if the program is a dll?

    I think the dll may not show any ICON in GUI interface.

    where would the install procedure would install to?
    why cann't I find the installed file in C:, D:, E:, Z: drivers?

    I think since the install succeeds, the installed file should exist in one of the drives although I don't specify _reg.rss file in pkg file.

    am I right?

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: how to run a program in e60 phone.

    Quote Originally Posted by baumannpan
    how about if the program is a dll?

    I think the dll may not show any ICON in GUI interface.
    It is not the situation now (you apparently have periodic.exe). However when you want to start a program from a .dll (why would you do that anyway?), you can still pass a function imported from it to EikStart::RunApplication (assuming you provide a launcher .exe).

  9. #9
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    70

    Re: how to run a program in e60 phone.

    Quote Originally Posted by wizard_hu_
    It is not the situation now (you apparently have periodic.exe). However when you want to start a program from a .dll (why would you do that anyway?), you can still pass a function imported from it to EikStart::RunApplication (assuming you provide a launcher .exe).
    Thanks for your response.

    Maybe I should put emphasis on the problem that why I can not find Periodic.exe in the mobile phone after installation finished succussfuly?

    I will add rss according to Tina's advice in pkg later.

  10. #10
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: how to run a program in e60 phone.

    If the exe is installed correctly in !:\sys\bin then one reason not to see this file is that a file browser needs restricted capabilities to access (list) the content of that folder.

    Adding the FR, FI to your exe line in pkg will cause the exe to be started during the installation process (sis file needs to be signed with a devcert) and thus you will see:
    - o console application in foreground
    and/or
    - a "Periodic" process in the task list
    and/or
    - a nice panic if your exe is not working properly

    Posting the content of the PKG file would also help people understand what happens on your device.

  11. #11
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    70

    Re: how to run a program in e60 phone.

    Quote Originally Posted by ltomuta
    If the exe is installed correctly in !:\sys\bin then one reason not to see this file is that a file browser needs restricted capabilities to access (list) the content of that folder.

    Adding the FR, FI to your exe line in pkg will cause the exe to be started during the installation process (sis file needs to be signed with a devcert) and thus you will see:
    - o console application in foreground
    and/or
    - a "Periodic" process in the task list
    and/or
    - a nice panic if your exe is not working properly

    Posting the content of the PKG file would also help people understand what happens on your device.
    thanks ya.
    hi , I am using self signed process to sign the sis file. Must I sign it with a devcert to test it?

    the pkg file for Periodic (last line added according to rss suggestion)is
    --------------------------------------------------------------EXCLUDED
    ;i don't know why if I add comment line ;xxxxx before each statement line, the createsis would not know the ;vendor name has been define below. So the pkg file looks like below
    --------------------------------------------------------------EXCLUDED

    :"Symbian"
    %{"Symbian"

    #{"Periodic"}, {0xE800003F}, 1,0,0
    ;dependency supports SDK s60 3
    [0x101f7961], 1,0,0, {"S60ProductID"}


    ;files to be copied
    "C:\Symbian\9.2\S60_3rd_fp1\Epoc32\release\gcce\udeb\periodic.exe" -"!:\system\apps\periodic.exe"
    ;added according to advice from da forum
    "C:\Symbian\9.2\S60_3rd_fp1\Epoc32\data\z\private\10003a3f\import\apps\periodic_reg.rsc" -"!:\private\10003a3f\import\apps\periodic_reg.rsc"

    the Periodic_reg.rss file looks:

    #include <appinfo.rh>
    UID2 KUidAppRegistrationResourceFile
    UID3 0xE800003F

    RESOURCE APP_REGISTRATION_INFO

  12. #12
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    70

    Re: how to run a program in e60 phone.

    Quote Originally Posted by ltomuta
    If the exe is installed correctly in !:\sys\bin then one reason not to see this file is that a file browser needs restricted capabilities to access (list) the content of that folder.

    Adding the FR, FI to your exe line in pkg will cause the exe to be started during the installation process (sis file needs to be signed with a devcert) and thus you will see:
    - o console application in foreground
    and/or
    - a "Periodic" process in the task list
    and/or
    - a nice panic if your exe is not working properly

    Posting the content of the PKG file would also help people understand what happens on your device.
    thanks ya.
    hi , I am using self signed process to sign the sis file. Must I sign it with a devcert to test it?

    the pkg file for Periodic (last line added according to rss suggestion)is
    --------------------------------------------------------------EXCLUDED
    ;i don't know why if I add comment line ;xxxxx before each statement line, the createsis would not know the ;vendor name has been define below. So the pkg file looks like below
    --------------------------------------------------------------EXCLUDED

    :"Symbian"
    %{"Symbian"

    #{"Periodic"}, {0xE800003F}, 1,0,0
    ;dependency supports SDK s60 3
    [0x101f7961], 1,0,0, {"S60ProductID"}


    ;files to be copied
    "C:\Symbian\9.2\S60_3rd_fp1\Epoc32\release\gcce\udeb\periodic.exe" -"!:\system\apps\periodic.exe"
    ;added according to advice from da forum
    "C:\Symbian\9.2\S60_3rd_fp1\Epoc32\data\z\private\10003a3f\import\apps\periodic_reg.rsc" -"!:\private\10003a3f\import\apps\periodic_reg.rsc"

    the Periodic_reg.rss file looks:

    #include <appinfo.rh>
    UID2 KUidAppRegistrationResourceFile
    UID3 0xE800003F

    RESOURCE APP_REGISTRATION_INFO
    {
    app_file="Periodic";
    }


    the mmp file looks like.
    .....
    SOURCEPATH .
    START RESOURCE Periodic_reg.rss
    #ifdef WINSCW
    TARGETPATH \private\10003a3f\apps
    #else
    TARGETPATH \private\10003a3f\import\apps
    #endif
    END //RESOURCE

    USERINCLUDE .

    ..


    Although rss file is added, after the sis installation, I could not find the the installed program yet!

    Is there some tricks for rss file (and related files)writing?
    Last edited by baumannpan; 2007-03-01 at 13:27. Reason: more added

  13. #13
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: how to run a program in e60 phone.

    If I see this one more time I quit posting on this forums ... E60 is a S60 3rd Edition device NOT a S60 3rd Edition FP1. Use the right SDK for the right phone. If in doubt always use the base line SDK for all your projects so that you application will work on all 3rd edition devices, regardles of the feature pack (FP) supported.
    Last edited by ltomuta; 2007-03-01 at 13:32.

  14. #14
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: how to run a program in e60 phone.

    Quote Originally Posted by baumannpan
    thanks ya.
    hi , I am using self signed process to sign the sis file. Must I sign it with a devcert to test it?

    the pkg file for Periodic (last line added according to rss suggestion)is
    --------------------------------------------------------------EXCLUDED
    ;i don't know why if I add comment line ;xxxxx before each statement line, the createsis would not know the ;vendor name has been define below. So the pkg file looks like below
    --------------------------------------------------------------EXCLUDED

    :"Symbian"
    %{"Symbian"

    #{"Periodic"}, {0xE800003F}, 1,0,0
    ;dependency supports SDK s60 3
    [0x101f7961], 1,0,0, {"S60ProductID"}


    ;files to be copied
    "C:\Symbian\9.2\S60_3rd_fp1\Epoc32\release\gcce\udeb\periodic.exe" -"!:\system\apps\periodic.exe"
    ;added according to advice from da forum
    "C:\Symbian\9.2\S60_3rd_fp1\Epoc32\data\z\private\10003a3f\import\apps\periodic_reg.rsc" -"!:\private\10003a3f\import\apps\periodic_reg.rsc"

    the Periodic_reg.rss file looks:

    #include <appinfo.rh>
    UID2 KUidAppRegistrationResourceFile
    UID3 0xE800003F

    RESOURCE APP_REGISTRATION_INFO
    {
    app_file="Periodic";
    }


    the mmp file looks like.
    .....
    SOURCEPATH .
    START RESOURCE Periodic_reg.rss
    #ifdef WINSCW
    TARGETPATH \private\10003a3f\apps
    #else
    TARGETPATH \private\10003a3f\import\apps
    #endif
    END //RESOURCE

    USERINCLUDE .

    ..
    So the installation works (despite the package UID not following the rule of being different than your app's UID3/SID). Then the exe file is copyied in the wrong place. You will never see that file running unles you place it (as clearely documented) allong with all the other binaries in !:\sys\bin
    Last edited by ltomuta; 2007-03-01 at 17:54.

  15. #15
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    70

    Re: how to run a program in e60 phone.

    Quote Originally Posted by ltomuta
    If I see this one more time I quit posting on this forums ... E60 is a S60 3rd Edition device NOT a S60 3rd Edition FP1. Use the right SDK for the right phone. If in doubt always use the base line SDK for all your projects so that you application will work on all 3rd edition devices, regardles of the feature pack (FP) supported.
    thanks,
    But how do i know whether the SDK is not suitable for e60 phones? how do choose the right SDK for the right phones? thanks lot agian.

Similar Threads

  1. Replies: 2
    Last Post: 2009-06-13, 05:20
  2. How do you run an application on the emulator on the PC so a phone can see it
    By johncogan in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2006-02-21, 14:39
  3. Nokia 6230 : Can I program this phone using C++ for a Bluetooth Application?
    By bmangra in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2005-07-05, 18:31
  4. Replies: 1
    Last Post: 2003-12-22, 13:11

Posting Permissions

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