×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    35

    Question How to change the alarm time of time comparing code snippet?

    hi there,
    i'm working on a new app.
    i need a piece of code for countdown minutes.i found a code snippet at python wiki page:
    http://wiki.forum.nokia.com/index.ph...o_compare_time
    but i couldn't understand how to change alarm time?how can i make it alarm after 3 minutes?



    sorry for my english

  2. #2
    Registered User
    Join Date
    Sep 2008
    Posts
    35

    Re: How to change the alarm time of time comparing code snippet?

    nobody knows how to do that huh??

  3. #3
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Tempe, AZ
    Posts
    411

    Re: How to change the alarm time of time comparing code snippet?

    Oh man, you want to set the alarm.
    I think its not possible to set alarm on Nokia Clock app.
    There was this discussion sometime ago and AFAI remember conclusion was that its still a feature in request.

    If you could give try to miso alarm extension, maybe it can be helpful for your application.
    http://www.hiit.fi/u/hasu/misoalarm/
    IDEAS is all they need but still they think only Genius can give them that.

  4. #4
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: How to change the alarm time of time comparing code snippet?

    What kind of alarm are you talking about?
    Anyway, if you want to countdown minutes, one way to do it is like this:
    Code:
    import appuifw, e32, thread
    
    app_lock=e32.Ao_lock()
    def quit():
    	app_lock.signal()
    appuifw.app.exit_key_handler=quit
    
    t=0
    
    def f():
    	global t
    	while(t<3*60):  #3*60 is 3 minutes
    		e32.ao_sleep(60)  #Wait 60 seconds
    		t+=60
    		print str(t/60)
    
    thread.start_new_thread(f, ())  #Start a thread for this function so as not to block the rest of the program
    
    app_lock.wait()

  5. #5
    Super Contributor
    Join Date
    Feb 2008
    Location
    Belo Horizonte, Brazil
    Posts
    744

    Re: How to change the alarm time of time comparing code snippet?

    Hi McLightning,

    Well, for the alarm issue I guess you could do an alarm inside your application. So it wouldn't depend on the native alarm. For doing this, check this article on the Wiki.

    The code example is for 5th edition, but don't worry, it will work on 3rd too.

    Hope I got your question!


    BR,

    Rafael.

Similar Threads

  1. Link errors when trying to Display bitmap
    By Bkc82 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-01-16, 22:46
  2. 7610 How To change time to answer before call diverts
    By bsides in forum General Development Questions
    Replies: 2
    Last Post: 2005-02-07, 23:42
  3. Replies: 2
    Last Post: 2003-11-09, 14:00
  4. Testing HTTP client for Nokia 3650; Looking to share code
    By nawkboy in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2003-09-10, 15:30
  5. Replies: 0
    Last Post: 2002-08-27, 08:16

Posting Permissions

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