[android-developers] Re: What longest leng for String in andorid?

2011-06-26 Thread JAlexoid (Aleksandr Panzin)
If the response is not Text/HTML/JSON/XML/(other text based) then use a byte array. On Jun 26, 4:12 am, a a harvey.a...@gmail.com wrote: HI, all:    I want to get the content to sting Variable from uri var HttpResponse. Is there any litimation for the long of sting variable ? may be the

Re: [android-developers] Re: What longest leng for String in andorid?

2011-06-26 Thread NaveenShrivastva
Please use String reversePalindrome = new String(server response); On Sun, Jun 26, 2011 at 1:19 PM, JAlexoid (Aleksandr Panzin) jalex...@gmail.com wrote: If the response is not Text/HTML/JSON/XML/(other text based) then use a byte array. On Jun 26, 4:12 am, a a harvey.a...@gmail.com

Re: [android-developers] Re: What longest leng for String in andorid?

2011-06-26 Thread a a
I tested at morning, it will cause java.lang.StringIndexOutOfBoundsException if the http response is too long, so what i can get all from http response? 2011/6/26 NaveenShrivastva kumarnaveen.si...@gmail.com: Please use String reversePalindrome = new String(server response); On Sun,

Re: [android-developers] Re: What longest leng for String in andorid?

2011-06-26 Thread a a
following is my code, like HttpGet httpReq = new HttpGet(uri); HttpParams httpParameters = new BasicHttpParams(); // Set the timeout in milliseconds until a connection is established. int timeoutConnection = 3000;

Re: [android-developers] Re: What longest leng for String in andorid?

2011-06-26 Thread Mark Murphy
A StringIndexOutOfBoundsException should be giving you more information, such as: Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 On Sun, Jun 26, 2011 at 6:01 AM, a a harvey.a...@gmail.com wrote: following is my code, like            HttpGet httpReq = new

Re: [android-developers] Re: What longest leng for String in andorid?

2011-06-26 Thread Kostya Vasilyev
... and is a programming error rather than a Java/Android string length limitation. Look at the stack trace in logcat, to see where you're getting the error. -- Kostya 26.06.2011 14:05, Mark Murphy пишет: A StringIndexOutOfBoundsException should be giving you more information, such as:

[android-developers] Re: What longest leng for String in andorid?

2011-06-25 Thread Zsolt Vasvari
Just like in normal Java, the length of the string is only limited by the heap space. On Jun 26, 9:12 am, a a harvey.a...@gmail.com wrote: HI, all:    I want to get the content to sting Variable from uri var HttpResponse. Is there any litimation for the long of sting variable ? may be the