Hi,
I have a simple widget that sets up its appearance during the initial
update.
This involves using RemoteViews:
updateViews.setImageViewResource(R.id..., R.drawable....);
updateViews.setViewVisibility(R.id..., View.....);
The widget's onUpdate method is the usual stuff:
for (int i = 0; i < N; i++) {
int appWidgetId = appWidgetIds[i];
RemoteViews updateViews = buildUpdate(context);
appWidgetManager.updateAppWidget(appWidgetId, updateViews);
}
Somehow, on the emulator, both in 1.6 and 2.1, this code gets called, but
the widget's views never get updated.
The code works fine on the HTC Hero 1.5.
I converted the layout to avoid using AbsoluteLayout and using FrameLayout
instead.
Evrything looks good to me, and still, no updates. Any thoughts on this?
Thanks,
-- Kostya Vasilyev
--
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