Answering my own question.
I had two emulators running side by side (1.6 QVGA and 2.1 WVGA800).
Closing one of them gets rid of the problem, and my widget updates just
fine.
I submitted an issue about this:
http://code.google.com/p/android/issues/detail?id=8160
-- Kostya
Kostya Vasilyev <[email protected]> писал(а) в своём письме Tue, 04 May
2010 21:45:42 +0400:
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
--
Написано в почтовом клиенте браузера Opera: http://www.opera.com/mail/
--
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