Hi all, I'm a little confused about the FLAGs on PendingIntents objects. I don't get exactly what the documentation wants to say to us. For example, when we obtain a PendingIntent to be used as a Intent Receiver trigger, we use:
Intent intent = <create a description of the intent we want to launch>; PendingIntent pi = PendingIntent.getBroadcast(context, NOT_USED_YET, intent, FLAG); What does it mean: "[...] if the described PendingIntent already exists [...]" ? Does it means if that intent description was already allocated to be launched? If so, what would happen when the last line is called the second time if we have set the PendingIntent to be launched by a location update? Do we need to remove the location update before using the PendingIntent object? I can't get quite well the PendingIntent concept. For me it's just like a loaded gun already to be fired (in the BroadcastReceiver context) upon certain circumstances. For instance, if we resquestLocationUpdates() with a PendingIntent created with FLAG_CANCEL_CURRENT, do we need to remove the update? The old object will not exist...right? Sorry this confusion, and thanks for any clarification. Regards, -- 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

