You can use AlarmManager, however, think twice before doing this, as too
frequent updates can drain the battery.
A much better solution is to only update your widgets in response to
events in your application or phone.
A widget provider is actually a subclass of BroadcastReceiver, and you
can list more intent filters in the manifest than the required
APPWIDGET_UPDATE. You can watch all kinds of events with this.
If you need to update your widgets in response to events that take place
in your application, you can actually do it directly, bypassing onUpdate
completely, by using AppWidgetManager.getAppWidgetIds and
updateAppWidget(int widgetId, RemoteViews views).
-- Kostya
24.03.2011 11:01, Eduardo Yáñez Parareda пишет:
Yes, after searching more information about the problem I got the info
from the API documentation... I had to downgrade the min API version
needed to 1.5 in order to test the widget in an emulator. Is there
another way to update the widget in shorter intervals?
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
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