Movatterモバイル変換


[0]ホーム

URL:


XDA Forums
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use analternative browser.

[App] Pedometer using hardware step sensor

Search This thread
By:
DoesntPostAThing

DoesntPostAThing

Senior Member
Nov 18, 2012
2,080
1,516
Vancouver
8HRZsJU.png


Hello everyone, since I received my Nexus 5 I have been working on an app that uses the low powered step counter API new in KitKat.

How this is different from most other pedometer apps is that with the hardware step sensor, this app uses almost no additional battery so you can keep it running all day. In my testing I noticed no difference in battery life between a day with Pedometer running and a day without it.

From the Google Play description:

Features:
- Set your goal! It is recommended that you take 10000 steps a day. This app allows you to set a goal that's right for you, and displays your current progress.
- Track your progress! This app will keep track of how much and how far you walked, all day, every day. History is presented neatly, both in a list and a graph for easy viewing.
- Colorful themes: choose one of 5 themes that fill your display with color, or go with the standard holo light or dark. With 7 themes in total, there's one for everyone!
- Low powered: Unlike other pedometer apps, this one will not affect your battery life at all.
- Achievements and leaderboards: sign in with your Google+ account to unlock achievements and compete with your friends in leaderboards!
- Both single-day and multi-day achievements are available
- [Pro only] Walk info: see how far you've walked today. Calorie counter coming soon.

Often times I'm too lazy to carry my Fitbit with me, especially since having it sync to my phone drains battery. With my phone being the pedometer I feel that I've been motivated to be more active.

There is also a pro version you can buy if you'd like to support me. This pro version currently adds a distance counter, so you can see how far you've walked all day. I plan on adding more pro-only features in the future, such as a calorie counter and maybe a widget. But don't worry, the free version will still be perfectly capable of serving as your daily pedometer. If a feature is extremely popular within the pro version I'll consider adding it to the free version as well.

Downloads:Free version,Pro version ($2.99)

I have used only three permissions. One is start on boot. This is used to start counting as soon as you start the device. The other two are write (and therefore read) external storage. This is used solely for the purpose of exporting logs to assist with debugging if the need arises. Don't worry, your data is safe, and this app will not be sending away any of your information.

If you have any questions of suggestions feel free to contact me, I try to respond within the same day.

* * * * * * * * * * *

Changelog

Mar. 27, 2014: v1.2.0
- Added long awaited history feature!
- Multi-day achievements for Google Play Games!
- Another attempt to fix inaccurate step count
- Added option to display imperial units (pro only)
- More UI optimizations and bug fixes for better use experience
- Preparation for new feature: activities!

Jan. 4, 2014: v1.1.2
- UI optimizations

Jan. 2, 2014: v1.1, v1.1.1
- Added Google Play Games (achievements and leaderboards)
- Low priority persistent notification
- Walk info screen [Pro]
- Bug fixes

Dec. 25, 2013: v1.0
- initial release
 
Last edited:

marleynyc

Senior Member
Aug 9, 2010
75
12
Love it!

I'm working on a rather big update, includes more Fitbit-like features such as history and activities. The basic features is about done, gonna make it look nice now and test it some more. Might upload a beta apk and post the Google Play beta link here for anyone interested in testing. I'm hoping to officially release the update in a week or so, so stayed tuned!

Hi. I just got my Nexus 5 yesterday. Your app was one of the first I downloaded as I had an S4 and was looking for a low battery pedometer like the S-Health app. Yours looks great, and is pretty accurate (and NO battery drain!). One issue, I had to reboot the phone and when it started again it only showed about half of my steps??... I would love to beta test the app for you. Keep up the good work. (I also would love to have history and be able to see previous days step counts, etc.)
 
DoesntPostAThing

DoesntPostAThing

Senior Member
Nov 18, 2012
2,080
1,516
Vancouver
One of my biggest gripes is when driving, all pedometer apps keep counting. There is usually a pause feature or something similar, but it would be ideal if it could detect if you are driving or not. If this is not easily achievable, is there an intent or something else I can use with Tasker to control this app?

Thanks, and it looks really promising!

Sent from my Nexus 5 using Tapatalk

Detecting if you are driving or not would require GPS or some form of location service, which negates the advantages of using a low powered sensor. In the current version (1.1.2) there is a pause button, but as I'm removing that in 1.2.0 for something else, you could use Tasker to force stop the app to stop counting, and use Tasker to launch the app/quickly go home to start the counting service again.




Good App! thank you for building something like this. I love the statement:

Low powered: Unlike other pedometer apps, this one will not affect your battery life at all.

If its not too much, can you also look into building an app for the always listening/touchless control feature that uses the low powered core? We have another thread with abounty on this feature.

Har5h

Sorry, but I don't know a thing about using hardware specific features. I'm actually quite new to programming, this project is the first big thing I made.

Sent from my Nexus 5
 
  • Like
Reactions:njakobs

PsychDrummer

Senior Member
Nov 29, 2012
732
110
One of my biggest gripes is when driving, all pedometer apps keep counting. There is usually a pause feature or something similar, but it would be ideal if it could detect if you are driving or not. If this is not easily achievable, is there an intent or something else I can use with Tasker to control this app?

Thanks, and it looks really promising!

Sent from my Nexus 5 using Tapatalk

I don't think it kept counting when I was driving the other day. If it did it didn't count a lot.
 
maddbomber83

maddbomber83

Senior Member
Jun 25, 2013
63
13
Andrews
Any plans to have this push results to something like FitBit or MyFitnessPal?

As for the driving thing, could you add an option for bluetooth device connected?

Example Interface:
Do not count steps if the following device is connected: (check boxes)
- Car Radio
- Headphones
- Phone Radio
- BlueTooth Headset

Do not count steps if plugged into a power source: (pull down)
USB
AC
Any
Disabled


In this way, you could set the device not to count steps if you are in your car (connected to your car radio via blutooth or maybe plugged into a power source).
I would think the power draw of these options would be in line with your design goal of keeping it to a minimum.

I have not used the app very long (pro version), does it keep track of history? An example would be a daily summary of steps/distance.
In this way, manually importing the information into other fitness trackers is easier.

Thank you for your consideration!
 
DoesntPostAThing

DoesntPostAThing

Senior Member
Nov 18, 2012
2,080
1,516
Vancouver
Any plans to have this push results to something like FitBit or MyFitnessPal?

As for the driving thing, could you add an option for bluetooth device connected?

Example Interface:
Do not count steps if the following device is connected: (check boxes)
- Car Radio
- Headphones
- Phone Radio
- BlueTooth Headset

Do not count steps if plugged into a power source: (pull down)
USB
AC
Any
Disabled


In this way, you could set the device not to count steps if you are in your car (connected to your car radio via blutooth or maybe plugged into a power source).
I would think the power draw of these options would be in line with your design goal of keeping it to a minimum.

I have not used the app very long (pro version), does it keep track of history? An example would be a daily summary of steps/distance.
In this way, manually importing the information into other fitness trackers is easier.

Thank you for your consideration!

What you say about charging and Bluetooth connected should be simple enough to add, I'll see if I can add it. History is also coming in the next version, here's a sneak peek at what I have so far;)

uploadfromtaptalk1390580214168.jpg

Of course, your full history will also be viewable and can be exported as CSV, although that part isn't quite done yet.

Sent from my Nexus 5
 

id4398

Member
Dec 12, 2011
23
1
Fremont, CA
What you say about charging and Bluetooth connected should be simple enough to add, I'll see if I can add it. History is also coming in the next version, here's a sneak peek at what I have so far;)

View attachment 2536576

Of course, your full history will also be viewable and can be exported as CSV, although that part isn't quite done yet.

Sent from my Nexus 5

Thanks for such a simple app. It worked fine for the first day. However, it's not working now. I have restarted phone, still same result. After first day in the night, i press pause button. Next day i pressed play, but it's not counting steps. Do you have any update coming out soon?
 
detdett

detdett

Senior Member
Dec 6, 2011
1,932
825
It works, and the UI is "clean" and easy, but the count is not perfetc... can't it be optimized?

It's difficult to differential a person physically shaking the phone versus actual walking. The fitbit series face the same problem as well

Sent from my Nexus 5 using Tapatalk
 
DoesntPostAThing

DoesntPostAThing

Senior Member
Nov 18, 2012
2,080
1,516
Vancouver
Thanks for such a simple app. It worked fine for the first day. However, it's not working now. I have restarted phone, still same result. After first day in the night, i press pause button. Next day i pressed play, but it's not counting steps. Do you have any update coming out soon?

Try force stopping it, clearing data, rebooting, then launch it again and press start. It worked fine for me, not sure why that happened. But yes, I do have an update coming out soon, although I've been very busy lately and haven't had time to work on it.

It works, and the UI is "clean" and easy, but the count is not perfetc... can't it be optimized?

Fixes to step count will be in next release, but not sure when that will be because as I said, very busy. Hopefully I can get it out before I leave for a band trip early February.

It's difficult to differential a person physically shaking the phone versus actual walking. The fitbit series face the same problem as well

Sent from my Nexus 5 using Tapatalk

Do you mean it will also count shakes? That's normal, as how it counts by detecting the accelerate/decelerate patterns of walking. It just happens that you can replicate it by shaking. And that's not really a problem of the app specifically, I'm just catching events from when the sensor thinks it detects a step and then displaying that.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 25
    8HRZsJU.png


    Hello everyone, since I received my Nexus 5 I have been working on an app that uses the low powered step counter API new in KitKat.

    How this is different from most other pedometer apps is that with the hardware step sensor, this app uses almost no additional battery so you can keep it running all day. In my testing I noticed no difference in battery life between a day with Pedometer running and a day without it.

    From the Google Play description:

    Features:
    - Set your goal! It is recommended that you take 10000 steps a day. This app allows you to set a goal that's right for you, and displays your current progress.
    - Track your progress! This app will keep track of how much and how far you walked, all day, every day. History is presented neatly, both in a list and a graph for easy viewing.
    - Colorful themes: choose one of 5 themes that fill your display with color, or go with the standard holo light or dark. With 7 themes in total, there's one for everyone!
    - Low powered: Unlike other pedometer apps, this one will not affect your battery life at all.
    - Achievements and leaderboards: sign in with your Google+ account to unlock achievements and compete with your friends in leaderboards!
    - Both single-day and multi-day achievements are available
    - [Pro only] Walk info: see how far you've walked today. Calorie counter coming soon.

    Often times I'm too lazy to carry my Fitbit with me, especially since having it sync to my phone drains battery. With my phone being the pedometer I feel that I've been motivated to be more active.

    There is also a pro version you can buy if you'd like to support me. This pro version currently adds a distance counter, so you can see how far you've walked all day. I plan on adding more pro-only features in the future, such as a calorie counter and maybe a widget. But don't worry, the free version will still be perfectly capable of serving as your daily pedometer. If a feature is extremely popular within the pro version I'll consider adding it to the free version as well.

    Downloads:Free version,Pro version ($2.99)

    I have used only three permissions. One is start on boot. This is used to start counting as soon as you start the device. The other two are write (and therefore read) external storage. This is used solely for the purpose of exporting logs to assist with debugging if the need arises. Don't worry, your data is safe, and this app will not be sending away any of your information.

    If you have any questions of suggestions feel free to contact me, I try to respond within the same day.

    * * * * * * * * * * *

    Changelog

    Mar. 27, 2014: v1.2.0
    - Added long awaited history feature!
    - Multi-day achievements for Google Play Games!
    - Another attempt to fix inaccurate step count
    - Added option to display imperial units (pro only)
    - More UI optimizations and bug fixes for better use experience
    - Preparation for new feature: activities!

    Jan. 4, 2014: v1.1.2
    - UI optimizations

    Jan. 2, 2014: v1.1, v1.1.1
    - Added Google Play Games (achievements and leaderboards)
    - Low priority persistent notification
    - Walk info screen [Pro]
    - Bug fixes

    Dec. 25, 2013: v1.0
    - initial release
    3
    I'm working on a rather big update, includes more Fitbit-like features such as history and activities. The basic features is about done, gonna make it look nice now and test it some more. Might upload a beta apk and post the Google Play beta link here for anyone interested in testing. I'm hoping to officially release the update in a week or so, so stayed tuned!
    3
    Any plans to have this push results to something like FitBit or MyFitnessPal?

    As for the driving thing, could you add an option for bluetooth device connected?

    Example Interface:
    Do not count steps if the following device is connected: (check boxes)
    - Car Radio
    - Headphones
    - Phone Radio
    - BlueTooth Headset

    Do not count steps if plugged into a power source: (pull down)
    USB
    AC
    Any
    Disabled


    In this way, you could set the device not to count steps if you are in your car (connected to your car radio via blutooth or maybe plugged into a power source).
    I would think the power draw of these options would be in line with your design goal of keeping it to a minimum.

    I have not used the app very long (pro version), does it keep track of history? An example would be a daily summary of steps/distance.
    In this way, manually importing the information into other fitness trackers is easier.

    Thank you for your consideration!

    What you say about charging and Bluetooth connected should be simple enough to add, I'll see if I can add it. History is also coming in the next version, here's a sneak peek at what I have so far;)

    uploadfromtaptalk1390580214168.jpg

    Of course, your full history will also be viewable and can be exported as CSV, although that part isn't quite done yet.

    Sent from my Nexus 5
    3
    Is there any further development planned for this app? I would be very sorry if it's dead:crying:

    Thanks in advance.

    Yes, I am still working on this app. History is very much functional (I've been using for the past month) but I haven't had time to make it look pretty yet. Right now it's quite raw, but it works. Apologies for the delay in getting updates out, I've been very busy the last month and a half, with a trip to Cuba and then having to catch up with schoolwork once I came back. Now that the term is more or less over I have time again to add the finishing touches. I hope to get an update out within a few weeks.
    2
    Hey everybody, it's complete! Version 1.2.0 has hit the Play Store, you should receive update notifications in a few hours. See the OP for more details, but here's the changelog for this version:

    Mar. 27, 2014: v1.2.0
    - Added long awaited history feature!
    - Multi-day achievements for Google Play Games!
    - Another attempt to fix inaccurate step count
    - Added option to display imperial units (pro only)
    - More UI optimizations and bug fixes for better use experience
    - Preparation for new feature: activities!

    Yes, history is added! Actually, it was done quite a while ago. However, the reason I took so long to release it was because it was quite "raw", and I wanted to smooth out the experience to make it (I hope) perfect before releasing. And that takes lots of testing, revising, etc., which all take time, which I didn't have much of as I went on a trip with the school band recently, and after I came back I had to focus on school work (end of term). I didn't have nearly as much time as I would have liked to work on this app. But now that that's all over, here it is!

    Version 1.2.0, enjoy!

    Pedometer Free
    Pedometer Pro

[8]ページ先頭

©2009-2025 Movatter.jp