| Reply | « Previous Thread | Next Thread » |
|
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 |
| McLightning34 |
| View Public Profile |
| Find all posts by McLightning34 |
|
nobody knows how to do that huh??
|
| McLightning34 |
| View Public Profile |
| Find all posts by McLightning34 |
|
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. |
| shubhendra |
| View Public Profile |
| Find all posts by shubhendra |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
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() |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
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. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Link errors when trying to Display bitmap | Bkc82 | Symbian Media (Graphics & Sounds) | 1 | 2006-01-16 23:46 |
| 7610 How To change time to answer before call diverts | bsides | General Discussion | 2 | 2005-02-08 00:42 |
| Testing HTTP client for Nokia 3650-Looking to share code | nawkboy | General Symbian C++ | 2 | 2003-11-09 15:00 |
| Testing HTTP client for Nokia 3650; Looking to share code | nawkboy | Symbian Networking & Messaging | 2 | 2003-09-10 16:30 |
| Snapshot Statistic NACS - How to change time for all params? | lellmer | WAP Servers | 0 | 2002-08-27 09:16 |