Multiple widgets: Launching configuration activity on widget click
<p>following scenario:
I have 3 of the same widgets on my home screen. If one gets clicked, the widget configuration activity gets launched. </p>

<p>This was implemented by following code:</p>

<pre><code>Intent intent = new Intent(context, WidgetConfigurator.class);
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); 
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

intent.setData(Uri.parse(intent.toUri(Intent.URI_INTENT_SCHEME)));
PendingIntent pendIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
remoteView.setOnClickPendingIntent(R.id.widget_linearlayout, pendIntent);
</code></pre>

<p>The launching is working, but there is one problem:<br>
1. Widget A gets clicked, configuration activity of Widget A is opened<br>
2. User hits "back" key, configuration activity disappears<br>
3. Widget B gets clicked, configuration activity of Widget B is opened<br>
4. User hits "back" key<br>
=> Now the configuration activity of Widget A is shown<br></p>

<p>I always only want the "actual" configuration activity (fitting to the widget that was clicked) to be shown. Which settings do i have to use for the Intent / PendingIntent?</p>

<p>thx for any help</p>
