Depending on what I do in my application, I might want to force an
update on my widget. I've have had a poke around and can't seem to
find any API for doing a manual update. At the moment, I have a
function that sends a broadcast and my onReceive does this:
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (action != null && action.equals(UPDATE_ACTION)) { //internal
static string
onUpdate(context,
AppWidgetManager.getInstance(context), new int[]
{ 0 });
}
else {
super.onReceive(context, intent);
}
}
Is there a proper way to do this, which sents the int array to the
correct values? Or do I have to do it like this instead?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---