Home > database >  Parsing JSON in Android :(
Parsing JSON in Android :(

Time:12-24

I am learning Android, parsing JSON. This is my code:

Picture 1

Picture 2

And this is result: Result

I don't understand why stringBuilder is null, it must be JSON. Please help :( .

CodePudding user response:

textView.setText(download.jsonString "noway") look here. download.jsonString is always null because First you set it, then you process jsonString. You need to do the opposite.

textView.setText(download.jsonString "noway") It is necessary to use this code inside the download class.

CodePudding user response:

Finally I fixed this bug. Just add Internet permission :(

  • Related