Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
lightsailpro
Old
(Last edited by lightsailpro; 15th March 2009 at 03:54 AM.) Reason: Pedometer new build - version 1.4
#1  
Member - OP
Thanks Meter 0
Posts: 90
Join Date: Apr 2006
Lightbulb Pedometer using Diamond's built in Accelerometer

=========================================
3/14/2009 Pedometer 1.42 is released.

What's new:

--Fixed "InvalidCastException" error for non-english regional setting.


NOTE:
1) If you want to keep your old jogging data, and customized sound file and background file, you need to save the "pedometer.sdf", "background.jpg", and "StepSound.wav" files, install the new version, then copy back these files to \program files\elitemway\pedometer folder.
2) !!! The pedometer is designed to count relatively accurately when you carry the phone vertically or horizontally around you left or right side of your waist belt. It may give you wrong result if carry your phone otherwise. Step detection algorithm that can handle all carrying position and walking/running conditions is very complicated and is beyond my knowledge. Step length and Calories conversion are unique for each individual and walking condition. There is no way that this can be very accurate. You may adjust these values in the "Setting" screen. The application is not globalized yet. Like all other xda developers, I have to find spare time working on this project. Thank you for your understanding!


==================================================

3/12/2009 Pedometer 1.41 patch is released.


What's new:

--Fixed the version number.
--When you set the distance unit to "mile", it still displays the distance value as km. This bug is fixed in the patch.

Copy the attached zipped exe to elitemway\pedometer folder, override the existing one.

12/25/2008 Pedometer 1.4 is released. Merry Christmas and Happy New Year!

What's new:

--The pedometer should also work when carrying in horizontal position. Please report if the counting is accurate enough.
--Added "Show toolbar" setting so that you can choose whether to show the toolbar on the main screen.


12/16/2008 Pedometer 1.3 is released.

What's new:

--Added battery threshhold setting. The program will pause pedometer, automatically save the current progress and then allow device to go into standby mode based on the Power setting when battery level falls below a certain value.
--Relocate the buttons from the main screen to menu.
--Display battery status on the main screen.
--You can change the background by replacing the default "Background.jpg" file.


12/15/2008 Pedometer 1.2 is released.


What's new:

--Step detection is a little bit better. It still has a lot of room for improvement though.
--While Pedometer is running, the screen will dim, but will not standby.
--The "Hide" button not only turns off the screen, it can also prevent the device from going into stanby mode. So you can let it run in the background for a long time. If you want to keep it running, do not use the Power button, instead using the Hide button.
--Pause button stops both time and step count. It will also stop the timer. So when it is paused, the device can be in the standby mode to save battery.
--I let it run around 7 hrs in office environment with fully charged batterry (1350mAh), with Blackberry connect and a few emails, no step sound, I still had about 45% left at the end.
--You can mute the step sound from the main screen.
--Now it has the HTC Diamond black transparent background. See the screenshot.
--The default step sound is shorter and "big foot" like. You can customize the sound by replace the default "StepSound.wav" file (do not use anything above 0.2 sec). Nero 8 wave editor and other tool is good for sound editing.
--Added error handling for possible decimal conversion error due to different regional setting. As a workaround, you can probably change you regional setting to English, then run the application, finish the setting, then change it back.


12/13/2008 Pedometer Release 1.0 summary

I searched extensively for a pedometer application that works on Diamond, but could not find anything. So I created one.

--It uses HTC Touch Diamond's built in Accelerometer.
--Only .Net CF 2.0 is required (comes with Diamond).
--You can pause and reset the step counter.
--It displays steps, distance, calories and time duration.
--You can use the Hide button to save battery.
--You can set the step length and calories per mile value.
--You can save, delete and view the historical data.
--The historical data is stored in Microsoft SQLCe compact database.
--It can play the sound when the step is detected.
--It can sound an alarm when the set distance is reached.
--Briefly tested with the US unlocked version of the Diamond and Sprint version of the Diamond.
--The sensor.dll is from http://www.koushikdutta.com/search/label/Sensor%20API

Tips:
--First, verify and set your preferred setting from the menu item.
--Find the best carrying position with the "Play step sound" option on.
--Use the Hide button to save battery.
--You can install on storage card, but it can break the application if you use the storage mode while the Pedometer application is running.

Known Issues:

--Step detection is not accurate sometime. The algorithm needs improvement.
--Hide mode does not prevent from going into sleep mode.
--After changing the setting, you need to close then reopen the application for teh new setting to take effect.
--It only works if the diamond is in the vertical position.
Attached Thumbnails
Click image for larger version

Name:	Screen01.jpg
Views:	16738
Size:	17.6 KB
ID:	137899   Click image for larger version

Name:	Screen02.jpg
Views:	5442
Size:	20.3 KB
ID:	137900   Click image for larger version

Name:	Screen041.png
Views:	5145
Size:	18.3 KB
ID:	137902   Click image for larger version

Name:	Screen042.png
Views:	3350
Size:	12.3 KB
ID:	137903   Click image for larger version

Name:	Screen05.png
Views:	3258
Size:	9.8 KB
ID:	137904  

Attached Files
File Type: zip elitemway_Pedometer_1.42.zip - [Click for QR Code] (943.5 KB, 15204 views)
 
the0ne
Old
#2  
the0ne's Avatar
Senior Member
Thanks Meter 51
Posts: 843
Join Date: Jan 2007
Location: Melbourne
nice work buddy
---

Windows Phone Apps || Windows Phone Games --- want to review apps and game for windows phone and get paid for it ? Get it touch



---
 
rhotrod23
Old
#3  
Junior Member
Thanks Meter 0
Posts: 8
Join Date: Jul 2007
Looks promising, thanks for the work!
 
fadywwf316
Old
#4  
Member
Thanks Meter 0
Posts: 34
Join Date: Oct 2007
any chance this would work on a touch pro? Also, if i wanted to leave it on all day just to basically see how many steps i'm getting in on a typical day, does that basically mean i'll have to recharge my phone everyday or is the battery footprint very low?

thanks!
 
brock1909
Old
#5  
Senior Member
Thanks Meter 6
Posts: 524
Join Date: Nov 2007
this could be pretty useful. thanks
 
BronYrAur
Old
#6  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Sep 2008
Nice work, I just came on here to look for one of these, thanks for the convenience haha
 
Ikari
Old
#7  
Ikari's Avatar
Member
Thanks Meter 0
Posts: 97
Join Date: Mar 2006
Thx for the ap, i was working on my one some time ago but stop after having bad etection when running, im going to test yours and given a feedback.
Like Drag and Drifting?
Test Pocket Gforce
or better Pocket Gforce 2


Help me develop, donate
 
pinele
Old
(Last edited by pinele; 13th December 2008 at 08:38 PM.)
#8  
pinele's Avatar
Senior Member
Thanks Meter 22
Posts: 157
Join Date: Nov 2005
work well on Touch HD and Diamond but... i run for twenty steps but... it counted only nine.. (bouth diamond and touch HD was in vertical position)...

thank you
 
lightsailpro
Old
#9  
Member - OP
Thanks Meter 0
Posts: 90
Join Date: Apr 2006
Step detection algorithm is hard to do. I will see if it can be improved.
 
lightsailpro
Old
#10  
Member - OP
Thanks Meter 0
Posts: 90
Join Date: Apr 2006
Quote:
Originally Posted by fadywwf316 View Post
any chance this would work on a touch pro? Also, if i wanted to leave it on all day just to basically see how many steps i'm getting in on a typical day, does that basically mean i'll have to recharge my phone everyday or is the battery footprint very low?

thanks!
Not sure if it will work on TouchPro. It should work though. This utility is still in early development stage. I do not have battery consumption data yet. The key is to find a reliable step detection algorithm. Thanks.

 
Post 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

Go to top of page...

XDA PORTAL POSTS

Open Source CPU Info App for Windows

So you’re playing with your shiny new Windows 8 tablet PC, when one of your like-minded geeky … more

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more