Al Could you give an example of how to use StringBuilder to replace what I am doing?
Thanks, Abhi On May 6, 3:37 pm, Al <alcapw...@googlemail.com> wrote: > This isn't an error, it's just a message to inform you it is better to > specify the size of thebufferyou need in the constructor. > > Abhi wrote: > > String line = "", oldtext = ""; > > > while((line = reader.readLine()) != null) > > { > > oldtext += line + "\r\n"; > > } > > Don't do that, use a StringBuilder and StringBuilder#append() instead. > String concatenation like the way you are doing it slows things down > and creates more objects. > > -- > 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 > athttp://groups.google.com/group/android-developers?hl=en -- 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