On Fri, Mar 2, 2012 at 2:23 PM, tatebn <[email protected]> wrote: > As it turns out, I'm emptying that array after I send it off. For > some reason the broadcast receiver is either using a reference to it, > so it gets the cleared one, or is sending after it's cleared. Either > way, not clearing the array after allows it to show up correctly.
Ah, that's an interesting point. With classic broadcasts, the Intents get, um, parcelized (v.t., to convert into Parcels). With LocalBroadcastManager, they are just passed around. Hence, you have to be very careful that you do not modify things that you put into the Intent, or explicitly copy them as you are putting them in the Intent. I have a section on LocalBroadcastManager in a book update coming out shortly, and I'll add in more material on this. Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

