Available for

download on ©Override

Wrox.com public void onUpdate(Context context,

AppWidgetManager appWidgetManager, int[] appWidgetIds) { final int N = appWidgetIds.length; for (int i = 0; i < N; i++) {

int appWidgetId = appWidgetIds[i]; // Create a Remove View

RemoteViews views = new RemoteViews(context.getPackageName(),


// Notify the App Widget Manager to update the widget using // the modified remote view.

appWidgetManager.updateAppWidget(appWidgetId, views);

Was this article helpful?

0 0
Mobile Apps Made Easy

Mobile Apps Made Easy

Quick start guide to skyrocket your offline and online business success with mobile apps. If you know anything about mobile devices, you’ve probably heard that famous phrase coined by one of the mobile device’s most prolific creators proclaiming that there’s an app for pretty much everything.

Get My Free Training Guide

Post a comment