Android - JSONException No value for
You are using the wrong object to get avatar
value here json.getString(KEY_AVA)
. It should be json_user.getString(KEY_AVA)
.
Also, you can use optString
instead of getString
which just returns null
if value doesn't exist, instead of throwing an exception.