> I am using marks' method of alarmreceiver and appservice. I am trying
> to pass a record id to the alarmintent through putextra. and receive
> it in ontimealarmreceiver in getExtra.
>
> What I observe is, first time record id goes correct (say 11) second
> time record id is sent 12, but in receiver i receive record id = 11.
> third time too record id -11
>
> whats wrong ?

PendingIntent recycles Intents, in effect. Try specifying
FLAG_UPDATE_CURRENT when you create your PendingIntent.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
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