Finally, I found what would do removeUpdates(PendingIntent). No matter
what object reference you pass through, it will get the receiver:
public void removeUpdatesPI(PendingIntent intent) {
try {
synchronized (mLock) {
removeUpdatesLocked(getReceiver(intent));
So, there's no problem getting new instances of a PendingIntent every
time you call getBroadcast(). What it matters is certainly the
PendingIntent description so the target is the same of every different
object, and so the receiver. At least, that is what finally I think
what understood.
Cheers,
--
If you want freedom, compile the source.
Sebastián Treu
http://labombiya.com.ar
--
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