當我第一次在屏幕上添加小部件時,它沒有錯誤地工作,然後當我單擊小部件上的按鈕以進入活動並關閉它時。窗口小部件停止更新,並在這裏顯示這個錯誤Appwidget無法更新,因爲Failed Binder事務
12-19 19:14:52.370: E/JavaBinder(14805): !!! FAILED BINDER TRANSACTION !!!
是我的代碼:
Widget4x2.remoteViews.setProgressBar(R.id.widget_progressbar, 100, (int)(NowPlayingService.progress * 100), false);
AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(Widget4x2.context);
appWidgetManager.updateAppWidget(new ComponentName(Widget4x2.context,Widget4x2.class), Widget4x2.remoteViews);
是否有與代碼的任何問題?