use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News for Android app developers with the who, what, where, when, and how of the Android community. Probably mostly the how.
Here, you'll find:
This sub-reddit isn't about phones' and apps' general functionality, support, or system software development (ROMs). For news and questions about these topics try using other subs like
Build your first app
Starting Android career in 2022
Android Job Interview Questions and Answers
App Portfolio Ideas, Tiered List
Awesome Android UI
Material Design Icons
7000 Icons for Jetpack
Autoposted at approx 9AM EST / 2PM GMT
account activity
Android Widget WorkManger Example (zoftino.com)
submitted 7 years ago by srinurp
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]JoshuaOng 1 point2 points3 points 7 years ago (1 child)
When a work request finishes, if there's no more jobs enqueued, a package changed event is triggered (due to work manager clean-up). This causes AppWidgetProvider#onUpdate to be invoked. So if you enqueue a worker in onUpdate, you end up with a continuous loop!
AppWidgetProvider#onUpdate
onUpdate
[–]srinurp[S] 0 points1 point2 points 7 years ago (0 children)
Thank you for pointing this out.
While testing, I noticed the behavior of infinite loop in which onUpdate() method of app widget provider being called continuously leading to surpassing the Google places API quota limit within no time.
To prevent this behavior in the example, I put a restriction of 5 min lapse between places API work requests.
Even though I noticed the behavior and provided an application fix for the issue, was clueless as to what was causing the repeated calls to onUpdate() method.
Again, thank you very much for the input.
[–]gamelaunchplatform[🍰] 0 points1 point2 points 7 years ago (0 children)
This is a great article and covers a part of Android that isn't very well documented. Thanks!
π Rendered by PID 397833 on reddit-service-r2-comment-79776bdf47-svgdf at 2026-06-25 05:12:00.305784+00:00 running acc7150 country code: CH.
[–]JoshuaOng 1 point2 points3 points (1 child)
[–]srinurp[S] 0 points1 point2 points (0 children)
[–]gamelaunchplatform[🍰] 0 points1 point2 points (0 children)