Modify activity after clicking on a notification
<p>I have a normal notification system that looks like this:</p>

<pre><code>Notification notification new Notification(
        R.drawable.alerts_notification,
        alertTitle,
        System.currentTimeMillis());
Intent intent = new Intent(mContext, MyActivity.class);
intent.setAction(MyActivity.ONE_ACTION);
PendingIntent pi = PendingIntent.getActivity(mContext, 0, intent, 0);
mNotifMan.notify(ID, notification);
</code></pre>

<p>Notice that I'm using <code>ONE_ACTION</code> as the action of the intent. What I do is verify the action on the activity and select one of the tabs (it's a <code>TabActivity</code>).</p>

<p>All that works fine if the activity is closed, because the <code>Intent</code> will open the activity and then I will decide what to do depending on the action in the <code>Intent</code>. But, if the activity is already opened, it launches a new activity. On the other hand, if I add the flag <code>Intent.FLAG_ACTIVITY_SINGLE_TOP</code>, the activity is not launched twice but I can't the tab is not chosen either.</p>

<p>So, how can choose a tab by clicking on the notification?</p>
