Sony Encouraging SmartWatch 2 Development

Mobile device companies like selling devices–it’s how they make their money and … more

Easily Toggles Your Lollipop Mobile Data Network Type

Android Lollipop is by good margin the most advanced and refinedversion of … more

Unofficial CM12 for Android One, Disabling Encryption on Nexus 6 – XDA TV

Android One devices have received an Unofficial CyanogenMod … more

Pushbullet Universal Copy/Paste Availabe for Linux, Mac OS X

Pushbullet is one of those useful utilities that once installed, permanently … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Pedometer widget?

OP hurdlejade

7th February 2014, 07:40 PM   |  #1  
OP Senior Member
Thanks Meter: 71
 
487 posts
Join Date:Joined: Sep 2012
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?
7th February 2014, 07:47 PM   |  #2  
Quote:
Originally Posted by hurdlejade

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...
7th February 2014, 07:51 PM   |  #3  
OP Senior Member
Thanks Meter: 71
 
487 posts
Join Date:Joined: Sep 2012
Quote:
Originally Posted by st-tps

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?
7th February 2014, 07:56 PM   |  #4  
Quote:
Originally Posted by hurdlejade

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.
9th February 2014, 11:50 AM   |  #5  
Quote:
Originally Posted by hurdlejade

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.
28th February 2014, 06:46 PM   |  #6  
OP Senior Member
Thanks Meter: 71
 
487 posts
Join Date:Joined: Sep 2012
Quote:
Originally Posted by st-tps

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?
28th February 2014, 06:52 PM   |  #7  
Quote:
Originally Posted by hurdlejade

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.
28th February 2014, 10:57 PM   |  #8  
Quote:
Originally Posted by hurdlejade

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.
3rd March 2014, 05:38 AM   |  #9  
Junior Member
Thanks Meter: 0
 
13 posts
Join Date:Joined: Mar 2013
Thumbs up
Quote:
Originally Posted by 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.

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)

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes