I've discovered the method call that causes the problem but I still
don't understand why..
In an activity, after saving and exiting I make a static method call
MyAppWidget.forceUpdate(this, "text");
Below is the method which updates the text of the widget
public static void forceUpdate(Context context, String note)
{
if (context != null)
{
ComponentName thisWidget = new
ComponentName(context,WhiteboardWidget.class);
AppWidgetManager manager =
AppWidgetManager.getInstance(context);
RemoteViews views = new
RemoteViews("whiteboard",R.layout.widget_layout);
views.setTextViewText(R.id.boardNote, note);
manager.updateAppWidget(thisWidget, views);
}
}
Any ideas now??
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en