I was wondering what is the maximum capacity of string builder (or stringbuffer)
I have a static variable in my Android app and it is supposed to hold log string. I the maximum it is holding is 130 lines and about 10000 character. I if i append more to it, but it just does not show (no error no exception)
So I was wondering if there is some sort of limitation placed in string builder or imposed by android on static variables length?
Thank you very much
It’s not limitation of StringBuilder, but limitation of the widget you are showing the text on! For example if you are showing the long text on a TextView, then you should consider using this line:
I read somewhere that this problem is specific to some devices only.