0
我做的是以下幾點:小工具有時不重新啓動後,工作
// prepare
mAppWidgetManager = AppWidgetManager.getInstance(applicationContent);
mAppWidgetHost = new LauncherAppWidgetHost(applicationContent, R.string.app_name);
// create widget
int appWidgetId = ...; // the id of the widget, that I have saved
AppWidgetProviderInfo appWidgetInfo = mAppWidgetManager.getAppWidgetInfo(appWidgetId);
AppWidgetHostView hostView = mAppWidgetHost.createView(context, appWidgetId, appWidgetInfo);
hostView.setAppWidget(appWidgetId, appWidgetInfo);
// show view
// now I just display the hostView
問題
在一些設備和一些小部件它發生的小部件也停止工作重新啓動後(在widgetView是重新啓動後只是一個空視圖)。任何想法爲什麼發生這種情況我問我的用戶嘗試在家裏發射相同的部件,並在那裏的小部件會繼續重新啓動後,工作以及...