Re: [android-developers] Re: Framework Cloning of Referenced Objects?

2011-11-06 Thread Dianne Hackborn
Generally a CursorLoader monitors for changes to the underlying database, and delivers a new Cursor to you when the data changes. So you could certainly be putting new objects in mPeople if the contacts change. On Sun, Nov 6, 2011 at 11:53 AM, Jay wrote: > I really don't do much else with mPeop

[android-developers] Re: Framework Cloning of Referenced Objects?

2011-11-06 Thread Jay
I really don't do much else with mPeople, though I can think of two other things it might be. As I said, mPeople does supply a ListAdapter. Is it possible that is doing some behind the scenes cloning? Perhaps more likely, mPeople is populated by a CursorLoader attached to the Contacts content provi

Re: [android-developers] Re: Framework Cloning of Referenced Objects?

2011-11-06 Thread Dianne Hackborn
Well as far as I know ArrayList won't just do this behind your back. I would assume there is something else your app is doing that isn't shown here. Are you sure you never change what is in mPeople that could cause a new instance of an object to be created? On Sat, Nov 5, 2011 at 10:16 PM, Jay

[android-developers] Re: Framework Cloning of Referenced Objects?

2011-11-05 Thread Jay
Thank you for the reply. Is there some other mechanism by which the objects in my array might be replaced with objects with the same type and contents but different identities (i.e. don't compare as equal using the default implementation)? Because that seems to be what is happening (intermittantly)