Hacker News new | past | comments | ask | show | jobs | submit login

> Some calls to that API on some OEMs device round alarms to the nearest minute, some to the nearest ten minutes.

WHY? What benefit does that serve?




>WHY?

Because China.

Having lived in China for a few months with an Android phone I can with absolute certainty tell you that this is needed over there. The amount of garbage apps, even from big companies like baidu is enourmous!

And without a Google playstore, or play services, or play safety thing it is an absolute wild-west of background alarms, API calls, battery draining and whatnot.


Sorry, how does rounding to the nearest minute or nearest TEN minutes solve any problems?

Like are apps setting alarms for every 3 seconds or something for no reason??


Yes. Rounding to 10 min means you fire up the cpu and do all apps at once then go idle.


Oh, so when we say "alarms" we mean "background processes that occur at set intervals"?

Not literally "alarms", like the ones that ring?


Both.


Rounding timers can greatly increase battery life, at the expense of apps not working - but who checks that apps work on their phone before buying it?


Limits the potential battery impact.

Without this restriction, how long before an app maker schedules their alarm every millisecond?


Probably a crude way to stop apps from waking themselves every minute.


'Performance'

Edit: It's become the new '911'... Family Guy Joke!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: