I am making an app that gets weather info from the web.
I am getting the whole JSONObject
at once, instead of piece by piece.
As a result of that, I can't call .getDouble
for temperature, I call getString
.
This returns a String, which I can't use the Math.round method on.
I tried the .split(".")
and it returns an array out of bounds exception, when I try to instert the sting into a text view.
If I call .toString()
it gives me "[Ljava.lang.String;@7353879
" in the textview.