“_Problem Loading Widget” message

前端 未结 18 2057
旧巷少年郎
旧巷少年郎 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:28

    There is of course the use-case where there was a widget loaded on the home page and the user then uninstalls the application that contains the widget and widget config app.

    When that happens, all you see is the "Problem Loading Widget" in a toast-like box on the home screen. As far as I can tell, the widget gets no indicatation that the package is being uninstalled and I guess then the home screen AppWidgetManager thows up a default message.

    Not well thought out behaviour on the part of the OS team. I suggest that it would be better to call the widget's onDisbled() and onDestroy() methods before the package is removed so they can tidy up if need be and the user (non-geek phone user) gets a clean experience.

提交回复
热议问题