Convert ArrayList to JSONArray
ArrayList<String> list = new ArrayList<String>();
list.add("abc");
list.add("xyz");
JSONArray jsArray = new JSONArray(list);
see api click here
How to add string into JsonArray
JSONArray list = new JSONArray();
list.put("abc");
list.put("xyz");
1 comments:
that doesnt work on less than API19
Post a Comment