I have a widget in my app that only needs to be updated when a service is running, and at no other time. I would like to get Android to not update it, or, at-worst, only update it at very large intervals.
In other words, what is the maximum value I can define android:updatePeriodMillis as?
I can’t seem to find this information anywhere…
updatePeriodMillis is an integer. So, the max value is Integer.MAX_VALUE which is 2147483647 (24 and a half days or so).
That being said, it sounds as if you want no automatic updates. If that is the case, then the documentation says you should set updatePeriodMillis to 0 or just leave it out of your manifest (also see disable update period