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
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
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,
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;
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
... 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:
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
7 matches
Mail list logo