Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"_Problem Loading Widget" message

When loading a widget if it cannot find a resource or something it says Problem Loading Widget. That's all! Amazing! This message remains on the home screen and does not even say which widget it had trouble loading.

I figured it out by trial and error but I would like to know if there are any places to find the error message when this occurs. Where will Android say what problem it had loading the widget or even which widget it failed to load?

like image 922
Androider Avatar asked Feb 10 '11 01:02

Androider


People also ask

How do I load widgets on Android?

Go to project setting -> Widget -> dependencies -> click in '+' -> add module ->add widget here.


1 Answers

Check elements you used in the view in a Widget..

Documentation link

A RemoteViews object (and, consequently, an App Widget) can support the following layout classes:

  • FrameLayout
  • LinearLayout
  • RelativeLayout
  • GridLayout

And the following widget classes:

  • AnalogClock
  • Button
  • Chronometer
  • ImageButton
  • ImageView
  • ProgressBar
  • TextView
  • ViewFlipper
  • ListView
  • GridView
  • StackView
  • AdapterViewFlipper

Using forbidden elements causes this very

Problem Loading Widget

message, without saying where did it happen.
like image 77
Gangnus Avatar answered Sep 19 '22 22:09

Gangnus