0

I am building an app that fetches images from websites. When i fetch html of the webpage , only half of the webpage is fetched by InputStreamReader. Spent too much time searching for solution but none suggest how to fix the problem. any help is appreciated. Thank you.

Here's the MainActivity.java https://gist.github.com/sujayss81/e4237916c605be223c673af7cf8f40d4

Here are the logs

https://gist.github.com/sujayss81/774472fe274e7cf9ebfdd0388c3e3ab5

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Ghost
  • 11
  • 3
  • I think that your variable `result` is correctly populated, with the entire web page. But the output of `Log.i("Result",result);` is truncated, making you believe that the code is not correct. – Benoit Jul 11 '19 at 09:19

1 Answers1

1

The code correctly fetches the entire web page. But the output of Log.i("Result",result); is truncated.

So if you want to increase this limit, consult these question:

Benoit
  • 5,118
  • 2
  • 24
  • 43