Settings

Theme

Show HN: StepLock – Unlock Android apps by walking

play.google.com

22 points by MegaLeon 10 years ago · 3 comments

Reader

MegaLeonOP 10 years ago

Dev here - I had this idea while commuting some time ago and decided to code a little app around it: StepLock works like your standard app blocker, except that to unlock apps you have to walk a set amount of steps.

Just add any of your apps to the block list and set the number of steps you need to walk that day. StepLock will monitor your usage and won't let you use the app until you walked that specific amount.

The only thing is that the app use the "new" generation step detection sensors which are designed to be low power and have a minimal impact of battery, and are only present on newer-ish phones. Sorry in advance if the app is not compatible with your device.

  • choochootrain 9 years ago

    cool idea! how are you locking out the apps? my first thought is the SYSTEM_ALERT_WINDOW permission which lets you draw over other apps but maybe theres a better way to do this in the new APIs.

    • MegaLeonOP 9 years ago

      Thanks! It's quite simple actually - what I do is monitoring the current app in the foreground with a background service and when the package name (unique to each app) matches the one in the app database, StepLock fires up.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection