I am just starting to understand how the Android widget lifecycle works and it seems that it is pretty much event-driven (broadcast driven). There is no real persistent session; your widget is woken up during the update and you are expected to update the views of your widget.
I can guess the answer to this question but can I track user location in a widget? If I understood the lifecycle right, the callbacks that I register with the LocationRequest
class won't work for long since the class that I have used will be garbage collected. My only option is to get the location once during the update.
The framework allows a maximum (or minimum) of 30 minute update intervals. Does that mean that the users will have to wait 30 minutes before they can see an updated location? Are there any workarounds?
Thanks.