I figured this out. I was doing this:
this.mainIntent = PendingIntent.getActivity(this, 0, new Intent
(this, MyActivity.class), 0);
which created a new intent that was used to create the the
notification. Instead I do this:
this.mainIntent = PendingIntent.getActivity(this, 0, getIntent
(), 0);
Now when I select my notification, it activates my existing activity
instead of creating a new instance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---