I created a widget that, when clicked, activates PendingIntent. The problem is that when I have more than one widget on the screen, only the last one will launch PendingIntent.
I read a few about the unique request code, but did not understand this.
Any ideas how I can have multiple widgets and PendingIntents work for each?
Here is a snippet of my code:
Intent openApp = new Intent(context, RunningTally.class); openApp.putExtra("widgetId", appWidgetId); PendingIntent pendingAppIntent = PendingIntent.getActivity(context, 0, openApp, PendingIntent.FLAG_CANCEL_CURRENT ); views.setOnClickPendingIntent(R.id.openFull, pendingAppIntent);
android widget
taraloca Sep 16 '10 at 19:52 2010-09-16 19:52
source share