Did you use PendingIntent.FLAG_CANCEL_CURRENT?

On Wed, Jul 18, 2012 at 7:55 AM, Matt Schoen <mtsch...@gmail.com> wrote:

> Hi there,
>
> I'm having an issue with an activity, which is started via a notification,
> which is spawned by an alarm.
>
> I've added debug outputs to determine whether the right data is being
> sent, and it is.  What's happening is this:
>
> The alarm fires, which picks a random entry from my database, and creates
> a notification with an intent starts an activity with that ID value as a
> bundle extra.  When this activity starts, the notification is cancelled.
>  The first time this all works like a charm.  However, the second time this
> alarm fires, it creates a new notification, and adds a different ID to the
> bundle extra (I'm sure of this since I print out the value of the
> variable).  However, when the new activity starts, it reads the OLD ID from
> the bundle extras.
>
> What gives?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to