当我第一次在屏幕上添加小部件时,它可以正常工作,然后当我单击小部件上的按钮进入活动并关闭它时。小部件停止更新并显示此错误
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);
代码有问题吗?