There's a known bug where the DELETED broadcast sends EXTRA_APPWIDGET_ID (instead of IDS):
http://groups.google.com/group/android-developers/msg/e405ca19df2170e2 j On Mon, Aug 3, 2009 at 8:21 AM, ChangliWang<[email protected]> wrote: > > public void onReceive(Context context, Intent intent) { > // TODO Auto-generated method stub > super.onReceive(context, intent); > String action = intent.getAction(); > if (AppWidgetManager.ACTION_APPWIDGET_DELETED.equals(action)) { > Log.i(TAG, "onReceive1"); > Bundle extras = intent.getExtras(); > if (extras != null) { > Log.i(TAG, "onReceive2"); > int[] appWidgetIds = extras.getIntArray > (AppWidgetManager.EXTRA_APPWIDGET_IDS); > if (appWidgetIds != null && appWidgetIds.length > 0) { > Log.i(TAG, "onReceive3"); > this.onDeleted(context, appWidgetIds); > } > } > } > > } > I found that appWidgetIds is null. Who can tell me why? > > > > -- Jeff Sharkey [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

