1/7/2023 0 Comments Update android studio to oreoStart a foreground service to update the widget.The obvious solution of starting a foreground service seems like an extreme measure for something that will be done in under 10s 99% of the time. However, Android O returns an IllegalStateException if you attempt that behavior. Before Android O, if onUpdate() was called on my AppWidgetProvider, I could launch a background service to update this widget. This widget takes between 100ms and 10s to update. Let's say I have a widget for an app that has targetSDKVersion set to 26.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |