Launch App from Notification with data
<p>I'm trying to use C2DM to trigger a push notification on my android phone, and have the user click the notification and launch a certain activity in the app.  How can I pass this information along?  </p>

<p>Currently I'm doing the following:</p>

<pre><code>        String ns = Context.NOTIFICATION_SERVICE;
        NotificationManager mNotificationManager 
            = (NotificationManager) getSystemService(ns);

        int icon = R.drawable.notification23;

        Notification notification = new Notification(icon, tickerText, when);
        notification.flags |= Notification.FLAG_ONGOING_EVENT | Notification.FLAG_AUTO_CANCEL;  

        Context appContext = getApplicationContext();
        Intent notificationIntent = new Intent(this, RequestDialogActivity.class);          
        notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
                | Intent.FLAG_ACTIVITY_SINGLE_TOP);
        notificationIntent.putExtra(LocationHandler.KEY_ORIGINATOR, number);
        PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);

        notification.setLatestEventInfo(appContext, contentTitle, contentText, contentIntent);

        final int id = 1;

        mNotificationManager.notify(id, notification);
</code></pre>

<p>I'm trying to store state by calling <code>putExtra</code> on the notificationIntent, but the new activity always has a null savedInstanceState Bundle.  How can I pass information along?</p>
