Back to project page VirginMobileMinutesChecker.
The source code is released under:
Copyright 2011 Jay Goel. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Red...
If you think the Android project VirginMobileMinutesChecker listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * //from www . ja va 2 s . com */ package com.baker.vm.widget; import android.appwidget.AppWidgetManager; import android.content.ComponentName; import android.content.Context; /** * @author baker * * This class is almost certainly implemented 100% wrong. But it ain't broke... * */ public final class WidgetUtil { public static void updateAllWidgets(final Context context) { AppWidgetManager mgr = AppWidgetManager.getInstance(context); int[] ids = mgr.getAppWidgetIds(new ComponentName(context, Simple2x1Widget.class)); if (ids.length > 0) { new Simple2x1Widget().onUpdate(context, mgr, ids); } ids = mgr.getAppWidgetIds(new ComponentName(context, PieGraphWidget.class)); if (ids.length > 0) { new PieGraphWidget().onUpdate(context, mgr, ids); } } }