On Dec 4, 9:33 am, Romain Guy <romain...@android.com> wrote: > From your observations it seems like the split() method works in a > similar way and causes you to keep a reference to the original > response data. You can try to fix this by replacing your fields[*] > statements with new String(fields[*]). This will create copies that > won't share the original response data. > There are two questions here - is the response object still referenced somewhere (can't tell from the information provided) and is the underlying character array still referenced by the sub String objects. The String class is pretty intelligent about lazy creation of the underlying character array. You might even have to do something like new String(fields[x].toCharArray()). This is going to be expensive for both time and memory (duplicates the underlying characters) so you would not normally do this.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en