You Are Here:

Community: Developer Discussion Boards

#1 Old Question How to change the alarm time of time comparing code snippet? - 2008-10-28, 11:16

Join Date: Sep 2008
Posts: 35
McLightning34
Offline
Registered User
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
Reply With Quote

#2 Old Re: How to change the alarm time of time comparing code snippet? - 2008-10-28, 15:53

Join Date: Sep 2008
Posts: 35
McLightning34
Offline
Registered User
nobody knows how to do that huh??
Reply With Quote

#3 Old Re: How to change the alarm time of time comparing code snippet? - 2008-10-28, 16:10

Join Date: Dec 2007
Posts: 409
Location: Tempe, AZ
Send a message via Yahoo to shubhendra Send a message via Skype™ to shubhendra
shubhendra's Avatar
shubhendra
Offline
Forum Nokia Champion
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.
Reply With Quote

#4 Old Re: How to change the alarm time of time comparing code snippet? - 2008-10-28, 16:11

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
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()
Reply With Quote

#5 Old Re: How to change the alarm time of time comparing code snippet? - 2008-10-28, 16:12

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia