I am trying to get all arrays I store in: https://s3.eu-west-2.amazonaws.com/tekstpieprz/strings.xml
I would like to use them for my textviews. I have added Unirest but cannot get my head around JSON. I have tried to play with something like:
HttpResponse<JsonNode> request = (HttpResponse<JsonNode>) Unirest.get("https://s3.eu-west-2.amazonaws.com/tekstpieprz/strings.xml")
.getBody("docukrz");
JSONObject myObj = request.getBody().getObject();
final JSONArray results = myObj.getJSONArray(String docukrz);
so then I can use the array in:
final String[] docukrz = res.getStringArray(R.array.docukrz);
But instead using
Resources
I would like to use the array I store online. I do not fully understand how JSON works, I have only started learning JAVA 6 weeks ago. Any help would be much much appreciated.