通过服务修改widgetUI

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);传值

你可能感兴趣的:(widget)