“_Problem Loading Widget” message

前端 未结 18 1792
旧巷少年郎
旧巷少年郎 2021-02-02 06:08

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 s

18条回答
  •  星月不相逢
    2021-02-02 06:22

    Just fixed another variant of this error not mentioned in the other answers.

    Symptoms were: 1) "Problem loading widget" error on Gingerbread and below 2) The exact same build ran fine on ICS and Jellybean 3) No errors in logcat

    The problem was caused by manipulating a view that was never inflated in the remoteviews. Specifically:

    remoteviews.setViewVisibility(viewId, View.GONE);

    Where viewId was a valid resource, but it was in a layout that was never added to the remote views. No errors were thrown, and the widget displayed 'Problem loading widget' after the call to .updateAppWidget()

提交回复
热议问题