I'm trying to split the names that , I have in my DB using for loop and adding to a different LinearLayout each name, Right now I get a name but I Can't see more names if I try object show me the full array but doesn't split the names .
public void onResponse(String response) {
Log.e("Response: ", response.toString());
try {
JSONObject jObj = new JSONObject(response);
String getObject = jObj.getString("name");
JSONArray jsonArray = new JSONArray(getObject);
for (int i = 0; i < jsonArray.length(); i++) {
JSONObject jsonObject = jsonArray.getJSONObject(i);
StringBuilder sb = new StringBuilder();
Log.d("myTag",""+jsonArray);
title = jsonObject.getString(TITLE);
sb.append(jsonArray.getString(i));
mValue.setText(sb.toString());
mValue.setId(i);
//ADD text View to Linear Layout
((LinearLayout) linear).removeAllViews();
((LinearLayout) linear).addView(mValue);
}