public static void updateAppWidget(Context context, String displayMsg) {
AppWidgetManager appWidgetManager = AppWidgetManager
.getInstance(context);
RemoteViews views = new RemoteViews(context.getPackageName(),
R.layout.widget);
}
新建一个服务, 通过Widget.updateAppWidget(Context, s);传值