I'm trying to make a notification so when I click it, it jumps to a
specific view inside my app. The problem I'm having is when I try to
retrieve 'extra' data, it all shows up as null.
I'm constructing the notification like this (from inside a Handler):

Notification notif = new Notification(R.drawable.icon, "ticker",
System.currentTimeMillis());

Intent hilight = new Intent(AndroidIRC.this, AndroidIRC.class);
hilight.putExtra("net.androidirc.androidirc.window", window);
hilight.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

PendingIntent contentIntent = PendingIntent.getActivity
(AndroidIRC.this, 0,
                                  hilight, 0);
notif.flags = Notification.FLAG_AUTO_CANCEL;
notif.setLatestEventInfo(AndroidIRC.this, "contentTitle",
"contentText", contentIntent);
                                mNm.notify(AndroidIRC.this.mRequestCode, notif);

The notification shows up fine and when I select it, onPause is called
followed by onResume. I used the debugger to inspect the Intent gotten
using getIntent() and every time the data is null. Strangely enough,
the logcat output shows this:
starting activity: {...... (has extras) }
but the extras don't appear to exist.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to