android
  #1  
Old 03-05-2010, 07:44 PM
djcrabs djcrabs is offline
Junior Member
 
Join Date: Mar 2010
Posts: 3
Default Stopwatch/Countdown (work in progress)

I tried to write my own stopwatch/countdown - app. It works but it's not completed yet. Especially the countdown part still needs improvement.
Maybe I'll add some background pictures, too.
-----
EDIT:
Fixed milliseconds in stopwatch-part [using os.ostime()]

Known Issues:
- Player freezes after ~5 minutes (or your selected "Idle Shutdown" time)
- Solution 1: Set the "Idle Shutdown" to "Off" OR
- Solution 2: tap the screen every once in a while
-----
EDIT:
New version: 0.4 beta

Changes:
added splash screen
added info-screen
changed exit-sequence to "community standard" (button.click() i think )
fixed navigation and reset button bug in the countdown-part
time in stopwatch-part is additionally displayed in h:m:s.ms format (e.g. 0:12:34.541 -> see screenshot 2 for picture)

Attached Images
File Type: png screenshot1.PNG (46.6 KB, 26 views)
File Type: png screenshot2.PNG (47.8 KB, 29 views)
File Type: png screenshot3.PNG (48.0 KB, 30 views)
File Type: png screenshot4.PNG (47.1 KB, 27 views)
Attached Files
File Type: zip Stopwatch_0_4_beta.zip (38.5 KB, 40 views)

Last edited by djcrabs; 09-01-2010 at 05:21 PM. Reason: Update
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 03-06-2010, 04:07 AM
bzdbbb's Avatar
bzdbbb bzdbbb is offline
X-Fi2 Development Moderator
 
Join Date: Dec 2009
Location: Gloucestershire, UK
Posts: 94
Default

Problem is the milliseconds - os.clock only works on the sim, and os.time only does whole seconds. You're best bet is to use os.sleep and increment a value by 1 each time the script runs through.

The countdown is useful, but the stopwatch really does need milliseconds..
Reply With Quote

  #3  
Old 03-06-2010, 08:09 AM
ThievingSix ThievingSix is offline
Member
 
Join Date: Aug 2008
Posts: 218
Default

Actually os.sleep() runs in centiseconds. Use os.wait() for milliseconds.
__________________
Only ONE more functions in the Wiki need addressing!
Zen X-Fi2 LUA Wiki
Want to protect your applications? Click Here!
Tower Defense Thread
Zen Lock - Protect Your Zen!
Reply With Quote

  #4  
Old 03-20-2010, 07:05 PM
djcrabs djcrabs is offline
Junior Member
 
Join Date: Mar 2010
Posts: 3
Default new version

new version with os.ostime(), first thread edited
Reply With Quote

  #5  
Old 05-20-2010, 06:36 AM
Hellknight Hellknight is offline
Junior Member
 
Join Date: May 2010
Posts: 1
Default

Great app. Looking forward to see it finished.
Reply With Quote

  #6  
Old 05-25-2010, 04:06 PM
Trente Trente is offline
Junior Member
 
Join Date: May 2010
Posts: 1
Default

Thanks a lot.

Two issues i've found:

- key lock can't be activated if the app is running
- no chance to go back if the app is started (forced to shutdown the player)

Thanks again for this great app.

best regards

Trente
Reply With Quote

  #7  
Old 09-01-2010, 05:20 PM
djcrabs djcrabs is offline
Junior Member
 
Join Date: Mar 2010
Posts: 3
Default New version: 0.4 beta

Sorry for my long absence.

I've published the new version 0.4 beta in the first thread.

I don't know if key lock can be activated in applications, but if you know how, feel free to tell me.
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 04:06 AM.