mercredi 13 mai 2015

what happens memory-wise when putExtra() is called?

In my android application I have an large ArrayList of objects (more than 100), and I'm passing this ArrayList from activity to activity via the intents, using the putExtra(key,value) function. What exactly happens memory wise when I do such thing, does the ArrayList gets copied so now it occupies twice the memory it needed at first? or it jst get referenced so the space stays the same?

Aucun commentaire:

Enregistrer un commentaire