Reputation: 21345
Sometimes my Widget/widgetProvider turns into a flat toast message "Problem Loading Widget" on the home screen does not even say which Widget. What should be done in code to handle this error and remedy it. I don't want to leave the widget sitting in this state. Thanks
PS for those looking for a reason why this is happening its often a resource and not necessary an error in LogCat. Sometimes its expressed as a Warning. I warning seems like an understatement for what has happened to the Widget however.
The question is when can this happen and how can one handle it when it does? Is there an Intent broadcast about this and what could one to to recover?
Upvotes: 4
Views: 4548
Reputation: 24464
Check elements you used in the view. only FrameLayout, LinearLayout, RelativeLayout, AnalogClock, Button, Chronometer, ImageButton, ImageView, ProgressBar, TextView, ViewFlipper are allowed.
Upvotes: 4