×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    3

    canvas lost when dial called in N95

    Hello,

    I have following python code:

    import telephone
    import e32
    import appuifw

    telephone.dial('01722321150')
    e32.ao_sleep(5)
    telephone.hang_up()
    appuifw.note(u'Call ended', 'info')
    if appuifw.query(u"Exit application", "query") == True:
    appuifw.note(u'Bye Bye', 'info')


    If I install this code in my 6630 as a python script I can see the message "Call ended".

    Using a N95 (with emsymble) the mobile starts the call but it returns to the main canvas ( Desktop ) and the message "Call ended" is never shown.

    Is there a way of locking the canvas ?

    Thank you.

    Jes

  2. #2
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,796

    Re: canvas lost when dial called in N95

    Just a random thought, Try the code as below. Not tested but

    Code:
    import telephone
    import e32
    import appuifw
    
    telephone.dial('01722321150')
    e32.ao_sleep(5)
    telephone.hang_up()
    e32.ao_sleep(1)
    appuifw.note(u'Call ended', 'info')
    if appuifw.query(u"Exit application", "query") == True:
    appuifw.note(u'Bye Bye', 'info')
    Best Regards
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    3

    Re: canvas lost when dial called in N95

    Thank you for the answer.

    I have just tried it but unfortunately, the behaviour has not changed :-(

  4. #4
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,796

    Re: canvas lost when dial called in N95

    Quote Originally Posted by sj034166 View Post
    Thank you for the answer.

    I have just tried it but unfortunately, the behaviour has not changed :-(
    Hi sj034166,

    So it must not be asking the query "Exit application"

    Do you find the same problem when you execute it as a script from the Pythonscript Shell?

    BR
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  5. #5
    Registered User
    Join Date
    Mar 2008
    Posts
    3

    Re: canvas lost when dial called in N95

    Hi Croozeus,

    I have started the script with the file_browser.py and in that case I can see the info messages (as with the 6630). The problem happends when running the script as an stand alone application.

    BR,
    sj034166

Similar Threads

  1. Classic N95 vs US ver. N95
    By qwerty0824 in forum General Development Questions
    Replies: 5
    Last Post: 2007-09-13, 18:09
  2. Problem developing canvas based application for N95
    By shallu_taneja in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2007-09-07, 06:20
  3. N95 Some Questions & Suggestions
    By subzero_brighton in forum General Development Questions
    Replies: 0
    Last Post: 2007-06-22, 15:37
  4. Order of called methods (Constructor,paint(), run()) when using canvas and runnable?
    By edmund66 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2004-09-22, 09:40
  5. Major problem with delegation to Canvas
    By bartekn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2003-10-08, 17:46

Posting Permissions

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