Home
last modified time | relevance | path

Searched refs:JsonUtils (Results 1 – 2 of 2) sorted by relevance

/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/
DJsonUtils.java27 final class JsonUtils { class
34 private JsonUtils() { in JsonUtils() method in JsonUtils
DMainActivity.java229 String question = questionObject.getString(JsonUtils.JSON_FIELD_QUESTION); in fromJson()
230 JSONArray answersJsonArray = questionObject.getJSONArray(JsonUtils.JSON_FIELD_ANSWERS); in fromJson()
231 String[] answers = new String[JsonUtils.NUM_ANSWER_CHOICES]; in fromJson()
235 int correctIndex = questionObject.getInt(JsonUtils.JSON_FIELD_CORRECT_INDEX); in fromJson()
264 JSONObject jsonObject = JsonUtils.loadJsonFile(this, QUIZ_JSON_FILE); in readQuizFromFile()
265 JSONArray jsonArray = jsonObject.getJSONArray(JsonUtils.JSON_FIELD_QUESTIONS); in readQuizFromFile()