Sometimes my widget / widgetProvider turns into a flat toast message "Widget loading problem" on the main screen does not even say which widget. What needs to be done in the code to handle this error and fix it. I do not want to leave the widget in this state. Thanks
PS for those who are looking for the reason why this often happens in the resource, and not in the LogCat error. Sometimes it is expressed as a warning. I warn, it seems like an understatement of what happened with Widget, however.
The question is when this can happen and how can it be handled when it happens? Is there an Intent broadcast about this and what can be restored?
source share