×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Install a script as a standalone app !

    Hello ,

    Do you know you could do appear a script like an usual application in the menu app of the phone ?
    It's easy !

    Try it !

    the example script used (save it as "pyFFFFFFF.py")

    Code:
    SYMBIANUID= 0X0FFFFFFF
    #
    # zero followed by seven "F" !
    #
    
    import appuifw
    appuifw.note(u'SYMBIAN UID = '+hex(SYMBIANUID),'info')
    1. Uncomment the following lines in !\System\Apps\appmgr\default.py (use the python editor !) in function run()

    lambda: standalone_install(filename),
    u"Standalone app",

    Attention you must respect the nospace between SYMBIANUID and equal sign !! Bug ;-)

    2. Send the script by Bluetooth from your PC to the phone inbox message.

    3. Click on the new script received by BT

    4. Now a new choice can be used "Standalone app" , choose it

    5. The new script is installed in !\system\App\pyFFFFFFF

    rem 1 : in the new folder you found three files : default.py (your script renamed)
    pyFFFFFFF.app (the unique executable file with the correct UID)

    pyFFFFFFF.rsc (always the same pyrsc_template.tmp from appmgr folder !)

    rem 2 : Insert the following line in the begin of your python script (if you want to be able to install as a standalone app !):
    SYMBIANUID= hex number

    where hex number is the UID required to symbian company (it's free and easy !) or a hex number whose range is 0x01000000 - 0x0FFFFFFF (risky only for development not for releasing !)

    rem 3 : instruction for requiring SYMBIAN UID (ten max )

    email to uid@symbiandevnet.com with the subject "UID Request"
    - specify your name or program name
    - specify your email address
    - specify the number of UIDs you request (up to 10).
    To ensure that each UID is genuinely unique, Symbian - through the Symbian Developer Network - allocates UIDs from a centrally administrated database. This is a free process (it just take one day for me)

  2. #2
    Regular Contributor
    Join Date
    Dec 2004
    Location
    Czech Republic
    Posts
    50
    hey, that's great news. there's already possibility called py2sis (as you might now), but only for S60 v2 and higher, so that was not useable. This works already on S60 v1.

    some notices for others:
    i noticed that adding the uid to script name is not necessary, ( "pyFFFFFFF.py"), and think it's not good to use it there. because the uid also appears in menu. you don't to add it to the script either, but you'd better do so. if you dont, it asks you during installation, so uid isn't static.

  3. #3
    Regular Contributor
    Join Date
    Sep 2003
    Location
    Finland
    Posts
    209
    Originally posted by Zen13546
    hey, that's great news. there's already possibility called py2sis (as you might now), but only for S60 v2 and higher, so that was not useable. This works already on S60 v1.
    You can use "py2sis" with Series 60 SDK 1.0 - see this thread (switch "--presdk20"):

    http://discussion.forum.nokia.com/fo...325#post132325

    Here is a tip how to add icons to your stand alone application:

    http://discussion.forum.nokia.com/fo...threadid=56898

    The option 2 could be used to wrap a fully stand alone Python for Series 60 application. You could e.g. add a line to the ".pkg" file which embeds the Python for Series 60 ".sis" file (search your SDK documentation "How to create an installation with embedded sis files").

  4. #4
    Regular Contributor
    Join Date
    Dec 2004
    Location
    Czech Republic
    Posts
    50
    Originally posted by otsov
    You can use "py2sis" with Series 60 SDK 1.0 - see this thread (switch "--presdk20"):

    http://discussion.forum.nokia.com/fo...325#post132325

    Here is a tip how to add icons to your stand alone application:

    http://discussion.forum.nokia.com/fo...threadid=56898

    The option 2 could be used to wrap a fully stand alone Python for Series 60 application. You could e.g. add a line to the ".pkg" file which embeds the Python for Series 60 ".sis" file (search your SDK documentation "How to create an installation with embedded sis files").
    oh. I didnt know that py2sis already works on S60 v1. Anyway, I add icons to standalone apps using IconWizard, not manually creating aif files.

  5. #5
    Regular Contributor
    Join Date
    Jul 2004
    Posts
    76
    cyke64 has stumbled upon (good job finding it, BTW), a old feature that was disabled (and isn't being worked on, improved, updated, or guarenteed to still be there in the next release.) It does give Python the ability to create stand-alone applications directly on the device; However, these aren't "properly" installed applications, thus un-installing is a completely manual process. There are a few other little gotcha's in there... but it works for some needs.

    Using py2sis is obviously the preferred approach, since it creates actual an SIS file which can be installed and un-installed correctly.

  6. #6
    Registered User
    Join Date
    Jun 2006
    Posts
    40

    Re: Install a script as a standalone app !

    thank you so much cyke64

    no need anymore of c++, sdk's, sis files, and all that... things

    bye bye

Posting Permissions

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