Answer the question
In order to leave comments, you need to log in
Why is Android json response breaking?
Good day to you people.
The essence of the problem is that when sending a request to vk.com, of the form:
url = "https://api.vk.com/method/photos.get?owner_id=<тут_был_id>&" +
"album_id=saved&rev=1&extended=1&v=5.7"
String url = "https://api.vk.com/method/photos.get?owner_id=<тут_был_id>&" +
"album_id=saved&rev=1&extended=1&v=5.7";
AsyncHttpClient client = new AsyncHttpClient();
client.get(url, new AsyncHttpResponseHandler() {
@Override
public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {
super.onSuccess(statusCode, headers, responseBody);
String logString = new String(responseBody);
Log.d("LOGTAG", logString);
}
});
Answer the question
In order to leave comments, you need to log in
Are you outputting the result only to the log? If the string is large, then it is always truncated when outputting. Tried to look through debug the necessary variable?
Or try to write the answer to a file. The fact is that the debugger also breaks the line.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question