×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Jul 2009
    Posts
    65

    How to quit app?

    When i execute a python script, it quits after executing, but if i export it as sis, it doesn't quit automatically.
    What command i should use to quit?

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: How to quit app?

    appuifw.app.set_exit()

  3. #3
    Regular Contributor
    Join Date
    Jan 2009
    Location
    India
    Posts
    138

    Re: How to quit app?

    One more way you can use for exiting your application.

    Define Quit function in your application.

    Code:
    def QUIT():
        app_lock.signal()
    Code:
    #Application Run
    app_lock=e32.Ao_lock()
    app_lock.wait()
    and you can call QUIT method when your application task is finish, after finish take your application will quit automatically.


    Hope this may be help.
    Pavan Pareta
    Sr. Software Engineer
    http://windows-mobile-dev.blogspot.com

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: How to quit app?

    For SIS files I use this:

    Code:
    if not e32.in_emulator():
        # Defect in 1.9.5 with sys.exit()
        if e32.pys60_version_info < (1,9):
            sys.exit()
    If I recall correctly, 1.9.x crashes with sys.exit() while 1.4.5 crashes without it... Might have been fixed in 1.9.7 already.

    https://garage.maemo.org/tracker/ind...=854&atid=3201

    Cheers,

    --jouni

  5. #5
    Regular Contributor
    Join Date
    Jul 2009
    Posts
    65

    Re: How to quit app?

    Thank you, I solved with appuifw.app.set_exit()

Similar Threads

  1. App Signing
    By stevejanko in forum Mobile Java General
    Replies: 9
    Last Post: 2009-04-14, 20:56
  2. renaming app, how??
    By Audun Holme in forum Symbian
    Replies: 2
    Last Post: 2007-05-13, 12:10
  3. Dialog's clipping area (again). Nokia experts, please help
    By synov in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-06-26, 14:35
  4. 7650 - go back, close my app not closing the container app
    By geran in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2002-12-05, 09:58

Posting Permissions

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