Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,072 Members 47,040 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Pedometer widget?

Tip us?
 
hurdlejade
Old
#1  
Senior Member - OP
Thanks Meter 67
Posts: 470
Join Date: Sep 2012
Default [Q] Pedometer widget?

Hi, is there any way to display current state of pedometer as a widget? Something like built in pedometer clock, but without the clock, and maybe with a personalized icon. Perhaps a Zooper widget?
 
st-tps
Old
#2  
st-tps's Avatar
Senior Member
Thanks Meter 139
Posts: 214
Join Date: Aug 2010
Location: Sweden
Quote:
Originally Posted by hurdlejade View Post
Hi, is there any way to display current state of pedometer as a widget? Something like built in pedometer clock, but without the clock, and maybe with a personalized icon. Perhaps a Zooper widget?
All data for the pedometer is placed in /data/data/com.sec.android.app.pedometer/databases/pedometer.db so making a simple widget thats updated when you turn the screen on would be a piece of cake...
Gear owners! Download my widgets: NotiCounter Widget and NotiList Widget - Galaxy Gear Exclusives!
For a complete compilation of my Gear Exclusive Apps, check out my External Site.

If you like it and find 'em useful, IŽll gladly recieve a little something

 
hurdlejade
Old
#3  
Senior Member - OP
Thanks Meter 67
Posts: 470
Join Date: Sep 2012
Quote:
Originally Posted by st-tps View Post
All data for the pedometer is placed in /data/data/com.sec.android.app.pedometer/databases/pedometer.db so making a simple widget thats updated when you turn the screen on would be a piece of cake...
Pretty please with a cherry on top ^^
Would it be possible to add start/pause button as well without entering the app itself?
 
st-tps
Old
#4  
st-tps's Avatar
Senior Member
Thanks Meter 139
Posts: 214
Join Date: Aug 2010
Location: Sweden
Quote:
Originally Posted by hurdlejade View Post
Pretty please with a cherry on top ^^
Would it be possible to add start/pause button as well without entering the app itself?
To read the data from the db is a simple task, to alter the info of the application is a different thing.
IŽll have to take a look in the pedemometer.apk to see if I can find any intents that support external triggering.
Gear owners! Download my widgets: NotiCounter Widget and NotiList Widget - Galaxy Gear Exclusives!
For a complete compilation of my Gear Exclusive Apps, check out my External Site.

If you like it and find 'em useful, IŽll gladly recieve a little something

 
st-tps
Old
#5  
st-tps's Avatar
Senior Member
Thanks Meter 139
Posts: 214
Join Date: Aug 2010
Location: Sweden
Quote:
Originally Posted by hurdlejade View Post
Pretty please with a cherry on top ^^
Would it be possible to add start/pause button as well without entering the app itself?
IŽm planning to start the work of a test-version of a Pedometer widget today. IŽll post here when I got something worth testing.

Sadly I havenŽt found anything usefull yet regarding the start and stopp. I concentrate to get the visual first and will digg deeper later on.
Gear owners! Download my widgets: NotiCounter Widget and NotiList Widget - Galaxy Gear Exclusives!
For a complete compilation of my Gear Exclusive Apps, check out my External Site.

If you like it and find 'em useful, IŽll gladly recieve a little something

 
hurdlejade
Old
#6  
Senior Member - OP
Thanks Meter 67
Posts: 470
Join Date: Sep 2012
Quote:
Originally Posted by st-tps View Post
IŽm planning to start the work of a test-version of a Pedometer widget today. IŽll post here when I got something worth testing.

Sadly I havenŽt found anything usefull yet regarding the start and stopp. I concentrate to get the visual first and will digg deeper later on.
Any progress st-tps?
 
st-tps
Old
#7  
st-tps's Avatar
Senior Member
Thanks Meter 139
Posts: 214
Join Date: Aug 2010
Location: Sweden
Quote:
Originally Posted by hurdlejade View Post
Any progress st-tps?
I'we done some testing with different results. Seems like the pedometer gets disturbed sometimes and stops counting until I enters the pedometer app again. But have only tested a little inside, no long walks outside so it may just be a lag in the update.

I can release an alpha just for testing purposes. I'll try to get it out tonight.
Gear owners! Download my widgets: NotiCounter Widget and NotiList Widget - Galaxy Gear Exclusives!
For a complete compilation of my Gear Exclusive Apps, check out my External Site.

If you like it and find 'em useful, IŽll gladly recieve a little something

 
st-tps
Old
#8  
st-tps's Avatar
Senior Member
Thanks Meter 139
Posts: 214
Join Date: Aug 2010
Location: Sweden
Quote:
Originally Posted by hurdlejade View Post
Any progress st-tps?
Here is a first output as a test:
https://dl.dropboxusercontent.com/u/...dget_v0.1a.apk

Update of the count is done upon Screen on or tapping the widget.
The total is a addition of Run steps, Walk steps and something called Up & Down steps, doesnŽt really know what the last is but itŽs a counter anyways.

Try it and see how it behaves.
Gear owners! Download my widgets: NotiCounter Widget and NotiList Widget - Galaxy Gear Exclusives!
For a complete compilation of my Gear Exclusive Apps, check out my External Site.

If you like it and find 'em useful, IŽll gladly recieve a little something

 
Hathalud
Old
#9  
Junior Member
Thanks Meter 0
Posts: 13
Join Date: Mar 2013
Quote:
Originally Posted by st-tps View Post
Here is a first output as a test:
https://dl.dropboxusercontent.com/u/...dget_v0.1a.apk

Update of the count is done upon Screen on or tapping the widget.
The total is a addition of Run steps, Walk steps and something called Up & Down steps, doesnŽt really know what the last is but itŽs a counter anyways.

Try it and see how it behaves.
That sounds pretty awesome and I'd like to thank you for working on this.

To me the pedometer app seems really limited. I can't see what I did the day before, or how well I'm doing over all on a weekly or monthly average since it doesn't seem to return any data beyond just one day. Is that kind of a thing something you'd be willing to address maybe as part of a non-widget screen in your widget? (like tap the widget to go in to see more verbose stats)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes